mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-02 12:13:05 +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 }} |