shithub: hugo

ref: 4fad43c8bd528f1805e78c50cd2e33822351c183
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 -}}