hugo-theme-learn/layouts/shortcodes/siteparam.html

7 lines
190 B
HTML
Raw Permalink Normal View History

2024-07-28 15:51:01 +02:00
{{- $paramName := (.Get 0) -}}
{{- $siteParams := .Site.Params -}}
{{- with $paramName -}}
{{- with $siteParams -}}
{{- index . (lower $paramName) -}}
{{- end -}}
{{- end -}}