☰
Debian Codegraph
@
0.167.0-2
0.166.0-2
0.166.0-1
0.165.0-3
0.165.0-2
0.162.1-1
/
/
tpl
/
tplimpl
/
embedded
/
templates
/
_shortcodes
/
param.html
☽
☼
tpl/tplimpl/embedded/templates/_shortcodes/param.html
code
plain
raw
Apache-2.0
2013–2016 Steve Francia <
[email protected]
>; 2014–2025 Bjørn Erik Pedersen <
[email protected]
>; 2015–2025 The Hugo Authors
debian/copyright
1
{{- $name := (.Get 0) -}}
2
{{- with $name -}}
3
{{- with ($.Page.Param .) }}{{ . }}{{ else }}{{ errorf "Param %q not found: %s" $name $.Position }}{{ end -}}
4
{{- else }}{{ errorf "Missing param key: %s" $.Position }}
5
{{ end -}}