mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 12:12:37 +00:00
83cfdd78ca
See #13541 for details. Fixes #13545 Fixes #13515 Closes #7964 Closes #13365 Closes #12988 Closes #4891
4 lines
223 B
HTML
4 lines
223 B
HTML
{{- $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 -}} |