culinary.kemonine.info/themes/hugo-theme-relearn/layouts/partials/shortcodes/siteparam.html

10 lines
240 B
HTML
Raw Normal View History

2022-12-03 15:27:03 +00:00
{{- $context := .context }}
{{- $paramName := .name }}
{{- with $context }}
{{- $siteParams := .Site.Params }}
{{- with $paramName }}
{{- with $siteParams }}
{{- index . (lower $paramName) }}
{{- end }}
{{- end }}
{{- end }}