From c26dede97f626b52b7bf8962ed55d1dbda86abe8 Mon Sep 17 00:00:00 2001 From: Hilmar R Date: Sun, 28 Feb 2021 21:06:16 +0100 Subject: get dev --- vendor/twbs/bootstrap/site/layouts/shortcodes/param.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vendor/twbs/bootstrap/site/layouts/shortcodes/param.html (limited to 'vendor/twbs/bootstrap/site/layouts/shortcodes/param.html') 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 -}} -- cgit v1.2.3