shithub: hugo

ref: beabc8d998249ecc5dd522d696dc6233a29131c2
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 -}}