2024-04-25 22:15:39 +00:00
|
|
|
{{ $context := .context -}}
|
|
|
|
{{ $taxo := .taxo -}}
|
|
|
|
{{ $title := .title -}}
|
|
|
|
{{ if isset $context.Site.Taxonomies (lower $taxo) -}}
|
|
|
|
{{ $taxonomy := index $context.Site.Taxonomies (lower $taxo) -}}
|
|
|
|
{{ if (gt (len $taxonomy) 0) -}}
|
2024-04-21 23:04:16 +00:00
|
|
|
<div class="taxonomy taxonomy-terms-cloud taxo-{{ urlize $taxo }}">
|
2024-04-25 22:15:39 +00:00
|
|
|
{{ with $title -}}
|
2024-04-21 23:04:16 +00:00
|
|
|
<h5 class="taxonomy-title">{{ . }}</h5>
|
2024-04-25 22:15:39 +00:00
|
|
|
{{ end -}}
|
2024-04-21 23:04:16 +00:00
|
|
|
<ul class="taxonomy-terms">
|
2024-04-25 22:15:39 +00:00
|
|
|
{{ range $taxonomy -}}
|
2024-04-21 23:04:16 +00:00
|
|
|
<li><a class="taxonomy-term" href="{{ .Page.Permalink }}" data-taxonomy-term="{{ urlize .Page.Title }}"><span class="taxonomy-label">{{ .Page.Title }}</span><span class="taxonomy-count">{{ .Count }}</span></a></li>
|
2024-04-25 22:15:39 +00:00
|
|
|
{{ end -}}
|
2024-04-21 23:04:16 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2024-04-25 22:15:39 +00:00
|
|
|
{{ end -}}
|
|
|
|
{{ end -}}
|