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

     1  {{- $page := .page }}
     2  {{- $location := .location }}
     3  {{- $outputFormat := .outputFormat | default (partial "output-format.hugo" $page) }}
     4  {{- range $k, $v := $page.Site.Params.relearn.dependencies }}
     5  	{{- $has := printf "has%s" $v.name }}
     6  	{{- $nestedhas := printf "nestedHas%s" $v.name }}
     7      {{- $wants := or ($page.Page.Store.Get $has) (and ($page.Page.Store.Get (printf "%sIsNested" $outputFormat)) ($page.Page.Store.Get $nestedhas)) }}
     8  	{{- if and $wants }}
     9  		{{- if $v.location }}
    10  			{{- warnf "DEPRECATED parameter 'location' for dependency '%s' configured in your hugo.toml, query the 'location' parameter inside your dependency loader instead; see https://mcshelby.github.io/hugo-theme-relearn/basics/migration#5270" $k}}
    11  		{{- end }}
    12  		{{- if or (not $v.location) (eq $location $v.location) }}
    13  			{{- $dep := printf "dependencies/%s.html" $k }}
    14  			{{- partial $dep (dict "page" $page "location" $location) }}
    15  		{{- end }}
    16  	{{- end }}
    17  {{- end }}