hugo-theme-termlite/layouts/partials/page/taxonomy_list.html
Eryn Wells 7ff79c546d A generic taxonomy list template
This template produces a <ul> list of the terms in the provided taxonomy. The
taxonomy is passed to the template via the `.term` argument, which is a string
name of the taxnomy.
2024-07-23 08:48:46 -07:00

8 lines
223 B
HTML

{{- $terms := .page.GetTerms .term -}}
{{ with $terms }}
<ul class="taxonomy-list" data-term="{{ $.term }}">
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}