mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-20 10:40:08 +00:00

- supply named parameter if missing #260 - fix boolean parameter if given as string #261 - revise documentation
7 lines
No EOL
212 B
HTML
7 lines
No EOL
212 B
HTML
{{- $paramName := .Get "name" | default (.Get 0) -}}
|
|
{{- $siteParams := .Site.Params -}}
|
|
{{- with $paramName -}}
|
|
{{- with $siteParams -}}
|
|
{{- index . (lower $paramName) -}}
|
|
{{- end -}}
|
|
{{- end -}} |