hugo-theme-relearn/layouts/partials/shortcodes/siteparam.html
2022-06-22 21:41:23 +02:00

10 lines
No EOL
240 B
HTML

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