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.
8 lines
223 B
HTML
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 }}
|