Sha256: c5c1eb1739dcbc36cc89509e86aa4d3ed5f946566ed65fda10d26be36b0d6047

Contents?: true

Size: 596 Bytes

Versions: 13

Compression:

Stored size: 596 Bytes

Contents

{{- /*
  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") -}}
  {{- $value = $value | safeHTML -}}
{{- end -}}
{{- with $value }}{{ . }}{{ else }}{{ errorf "Param %q not found: %s" $name $.Position }}{{ end -}}
{{- else }}{{ errorf "Missing param key: %s" $.Position }}{{ end -}}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
card-mod-bootstrap-0.18.1 vendor/bootstrap/site/layouts/shortcodes/param.html
card-mod-bootstrap-0.18.0 vendor/bootstrap/site/layouts/shortcodes/param.html
card-mod-bootstrap-0.17.0 vendor/bootstrap/site/layouts/shortcodes/param.html
card-mod-bootstrap-0.16.0 vendor/bootstrap/site/layouts/shortcodes/param.html
card-mod-bootstrap-0.15.6 vendor/bootstrap/site/layouts/shortcodes/param.html
card-mod-bootstrap-0.15.5 vendor/bootstrap/site/layouts/shortcodes/param.html
card-mod-bootstrap-0.15.4 vendor/bootstrap/site/layouts/shortcodes/param.html
card-mod-bootstrap-0.15.3 vendor/bootstrap/site/layouts/shortcodes/param.html
card-mod-bootstrap-0.15.1.2 vendor/bootstrap/site/layouts/shortcodes/param.html
card-mod-bootstrap-0.15.2.pre1 vendor/bootstrap/site/layouts/shortcodes/param.html
card-mod-bootstrap-0.15.1.1 vendor/bootstrap/site/layouts/shortcodes/param.html
card-mod-bootstrap-0.15.1 vendor/bootstrap/site/layouts/shortcodes/param.html
card-mod-bootstrap-0.15.0 vendor/bootstrap/site/layouts/shortcodes/param.html