2024-08-07 07:43:50 -10:00
|
|
|
{{- /*
|
|
|
|
Generates a list of the terms for a given taxonomy.
|
2024-08-02 15:47:33 -07:00
|
|
|
|
2024-08-07 07:43:50 -10:00
|
|
|
@context {Page} .page The current page
|
|
|
|
@context {String} .taxonomy The name of the taxonomy
|
|
|
|
|
|
|
|
*/ -}}
|
2024-08-02 15:47:33 -07:00
|
|
|
|
|
|
|
{{- $taxonomy := .taxonomy -}}
|
2024-08-07 07:43:50 -10:00
|
|
|
|
2024-08-02 15:47:33 -07:00
|
|
|
{{ with .page.GetTerms $taxonomy }}
|
|
|
|
{{- $name := $taxonomy -}}
|
|
|
|
{{- with T $taxonomy (len .) }}
|
|
|
|
{{ $name = . }}
|
|
|
|
{{ end -}}
|
|
|
|
<ul class="taxonomy-list" data-name="{{ $name }}">
|
2024-07-23 08:48:46 -07:00
|
|
|
{{ range . }}
|
|
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|