github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/layouts/partials/taxonomy_terms_cloud.html (about) 1 {{ $context := .context }} 2 {{ $taxo := .taxo }} 3 {{ $title := .title }} 4 {{ if isset $context.Site.Taxonomies ( lower $taxo ) }} 5 {{ $taxonomy := index $context.Site.Taxonomies ( lower $taxo ) }} 6 {{ if (gt (len $taxonomy) 0)}} 7 <div class="taxonomy taxonomy-terms-cloud taxo-{{ urlize $taxo }}"> 8 {{ with $title }} 9 <h5 class="taxonomy-title">{{ . }}</h5> 10 {{ end }} 11 <ul class="taxonomy-terms"> 12 {{ range $taxonomy }} 13 <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> 14 {{ end }} 15 </ul> 16 </div> 17 {{ end }} 18 {{ end }}