mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
11 lines
No EOL
300 B
HTML
11 lines
No EOL
300 B
HTML
{{- $context := .context }}
|
|
{{- $paramNames := split .name "." }}
|
|
{{- with $context }}
|
|
{{- $params := .Site.Params }}
|
|
{{- range $paramName := $paramNames }}
|
|
{{- with $params }}
|
|
{{- $params = index . (lower $paramName) }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- $params | .RenderString }}
|
|
{{- end }} |