mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.git
synced 2024-09-19 09:57:52 +00:00
19 lines
749 B
HTML
19 lines
749 B
HTML
{{ $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) -}}
|
|
<div class="taxonomy taxonomy-terms-cloud taxo-{{ urlize $taxo }}">
|
|
{{ with $title -}}
|
|
<h5 class="taxonomy-title">{{ . }}</h5>
|
|
{{ end -}}
|
|
<ul class="taxonomy-terms">
|
|
{{ range $taxonomy -}}
|
|
<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>
|
|
{{ end -}}
|
|
</ul>
|
|
</div>
|
|
{{ end -}}
|
|
{{ end -}}
|