mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
f37c5a2567
Fixes #4010
4 lines
No EOL
223 B
HTML
4 lines
No EOL
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 -}} |