shithub: hugo

ref: c98132e30e01a9638e61bd888c769d30e4e43ad5
dir: /tpl/tplimpl/embedded/templates/shortcodes/param.html/

View raw version
{{- $name := (.Get 0) -}}
{{- with $name -}}
{{- with ($.Page.Param .) }}{{ . }}{{ else }}{{ errorf "Param %q not found: %s" $name $.Position }}{{ end -}}
{{- else }}{{ errorf "Missing param key: %s" $.Position }}{{ end -}}