From 89e4006b2d84d398e34d407a019854823b1dd37d Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 22 Sep 2021 06:38:27 +0000 Subject: composer update bootstrap to version 5.1.1 --- vendor/twbs/bootstrap/site/layouts/shortcodes/param.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (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 index 50e2060ae..34ad00c87 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html @@ -1,11 +1,13 @@ {{- /* 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 in $name "_hash" -}} +{{- /* If any parameter ends with `_hash`, mark the string as safe HTML */ -}} +{{- if (strings.HasSuffix $name "_hash") -}} {{- $value = $value | safeHTML -}} {{- end -}} {{- with $value }}{{ . }}{{ else }}{{ errorf "Param %q not found: %s" $name $.Position }}{{ end -}} -- cgit v1.2.3 From a451449766d581978068a5b8f8c1e27f50386ea7 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 23 Sep 2021 08:33:36 +0000 Subject: Revert "composer update bootstrap to version 5.1.1" This reverts commit 89e4006b2d84d398e34d407a019854823b1dd37d. --- vendor/twbs/bootstrap/site/layouts/shortcodes/param.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (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 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 -}} -- cgit v1.2.3 From e6dac085cb1d601da1fc63bfd59d811612fa6ef4 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 8 Oct 2021 12:24:19 +0000 Subject: update composer libs --- vendor/twbs/bootstrap/site/layouts/shortcodes/param.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (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 index 50e2060ae..34ad00c87 100644 --- a/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html +++ b/vendor/twbs/bootstrap/site/layouts/shortcodes/param.html @@ -1,11 +1,13 @@ {{- /* 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 in $name "_hash" -}} +{{- /* If any parameter ends with `_hash`, mark the string as safe HTML */ -}} +{{- if (strings.HasSuffix $name "_hash") -}} {{- $value = $value | safeHTML -}} {{- end -}} {{- with $value }}{{ . }}{{ else }}{{ errorf "Param %q not found: %s" $name $.Position }}{{ end -}} -- cgit v1.2.3