mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 17:53:07 +00:00
8551ee2738
- 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 -}} |