itd-site/themes/hugo-theme-relearn/layouts/shortcodes/siteparam.html

7 lines
190 B
HTML
Raw Normal View History

2021-10-24 09:25:31 +00:00
{{- $paramName := (.Get 0) -}}
{{- $siteParams := .Site.Params -}}
{{- with $paramName -}}
{{- with $siteParams -}}
{{- index . (lower $paramName) -}}
{{- end -}}
{{- end -}}