bunteshaus.de/themes/buha/layouts/partials/contentlayouts/termlist.html
2022-04-07 16:31:15 +02:00

30 lines
891 B
HTML

{{ $name := .context.Title }}
{{ $title := lower .context.Title }}
{{ range $taxonomyname, $taxonomy := .context.Site.Taxonomies }}
{{ if eq $title $taxonomyname }}
{{ range $key, $value := $taxonomy }}
<a href="{{ printf "%s" $key }}">{{ $key }}</a>
{{ end }}
{{ end }}
{{ end }}
{{ if and site.Params.debug false }}
{{ range $taxonomyname, $taxonomy := .context.Site.Taxonomies }}
<li><a href="/{{ $taxonomyname | urlize }}">{{ $taxonomyname }}</a>
<ul>
{{ range $key, $value := $taxonomy }}
<li> {{ $key }} </li>
<ul>
{{ range $value.Pages }}
<li hugo-nav="{{ .RelPermalink}}"><a href="{{ .Permalink}}"> {{ .LinkTitle }} </a> </li>
{{ end }}
</ul>
{{ end }}
</ul>
</li>
{{ end }}
{{ end }}