shithub: hugo

ref: 81f5633245bf123fbe7ad78eec51ae7b4e6c177a
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 -}}