mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-22 18:25:48 +00:00
getting-started/theming.md: throw an error if the regex doesn't succeed.
This commit is contained in:
parent
cf4ae75eff
commit
2c9e22ef88
1 changed files with 4 additions and 0 deletions
|
|
@ -373,6 +373,10 @@ Here are the variables we include (note that the `:root` is required). They're l
|
||||||
{{- $css := readFile "dist/css/bootstrap.css" -}}
|
{{- $css := readFile "dist/css/bootstrap.css" -}}
|
||||||
{{- $match := findRE ":root {([^}]*)}" $css 1 -}}
|
{{- $match := findRE ":root {([^}]*)}" $css 1 -}}
|
||||||
|
|
||||||
|
{{- if (eq (len $match) 0) -}}
|
||||||
|
{{- errorf "Got no matches for :root in %q!" $.Page.Path -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- index $match 0 -}}
|
{{- index $match 0 -}}
|
||||||
|
|
||||||
{{< /root.inline >}}
|
{{< /root.inline >}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue