diff options
Diffstat (limited to 'vendor/twbs/bootstrap/site/layouts/shortcodes/param.html')
-rw-r--r-- | vendor/twbs/bootstrap/site/layouts/shortcodes/param.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html new file mode 100644 index 000000000..50e2060ae --- /dev/null +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html @@ -0,0 +1,12 @@ +{{- /* + Work around wrong escapes in integrity attributes. +*/ -}} + +{{- $name := .Get 0 -}} +{{- with $name -}} +{{- $value := $.Page.Param . -}} +{{- if in $name "_hash" -}} + {{- $value = $value | safeHTML -}} +{{- end -}} +{{- with $value }}{{ . }}{{ else }}{{ errorf "Param %q not found: %s" $name $.Position }}{{ end -}} +{{- else }}{{ errorf "Missing param key: %s" $.Position }}{{ end -}} |