mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
4
tpl/tplimpl/embedded/templates/shortcodes/param.html
Normal file
4
tpl/tplimpl/embedded/templates/shortcodes/param.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{{- $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 -}}
|
Reference in New Issue
Block a user