aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/twbs/bootstrap/site/layouts/shortcodes/param.html')
-rw-r--r--vendor/twbs/bootstrap/site/layouts/shortcodes/param.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html b/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html
index 34ad00c87..50e2060ae 100644
--- a/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html
+++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html
@@ -1,13 +1,11 @@
{{- /*
Work around wrong escapes in integrity attributes.
- Original: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/shortcodes/param.html
*/ -}}
{{- $name := .Get 0 -}}
{{- with $name -}}
{{- $value := $.Page.Param . -}}
-{{- /* If any parameter ends with `_hash`, mark the string as safe HTML */ -}}
-{{- if (strings.HasSuffix $name "_hash") -}}
+{{- if in $name "_hash" -}}
{{- $value = $value | safeHTML -}}
{{- end -}}
{{- with $value }}{{ . }}{{ else }}{{ errorf "Param %q not found: %s" $name $.Position }}{{ end -}}