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