github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/docs/themes/hugo-theme-relearn/layouts/partials/shortcodes/siteparam.html (about)

     1  {{- $page := .page }}
     2  {{- if and (not $page) .context }}
     3    {{- $page = .context }}
     4    {{- warnf "%q: DEPRECATED parameter 'context' for shortcode 'siteparam' found, use 'page' instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#5180" $page.File.Filename }}
     5  {{- end }}
     6  {{- $paramNames := split .name "." }}
     7  {{- with $page }}
     8  {{- $params := .Site.Params }}
     9  {{- range $paramName := $paramNames }}
    10      {{- with $params }}
    11          {{- $params = index . (lower $paramName) }}
    12      {{- end }}
    13  {{- end }}
    14  {{- with $params }}
    15    {{- . }}
    16  {{- end }}
    17  {{- end }}