shithub: hugo

ref: 82abca32fa8791e526edd820c32c0b8f9d8e0e78
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 -}}