hugo-theme-relearn/layouts/shortcodes/siteparam.html
2017-09-04 22:24:36 +02:00

7 lines
No EOL
190 B
HTML

{{- $paramName := (.Get 0) -}}
{{- $siteParams := .Site.Params -}}
{{- with $paramName -}}
{{- with $siteParams -}}
{{- index . (lower $paramName) -}}
{{- end -}}
{{- end -}}