taxonomy_terms_cloud.html 749 B

123456789101112131415161718
  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 -}}