{{ $taxonomy := .taxonomy }}
{{ range $term, $pages := index .Site.Taxonomies $taxonomy }}
{{ $termPage := $.Site.GetPage (printf "/%s/%s" $taxonomy $term) }}
<a href="{{ $termPage.RelPermalink }}" 
  data-size="{{ len $pages }}"
  class="tag font-bold
          {{ if eq $.page.RelPermalink $termPage.RelPermalink }}hidden{{ else }}inline-block{{ end }}
          data-[size=1]:text-sm data-[size=1]:font-normal data-[size=1]:opacity-90
          data-[size=2]:text-base
          data-[size=3]:text-xl
          data-[size=4]:text-3xl
          data-[size=5]:text-4xl"
  data-count="{{ len $pages}}">
  {{ $term }}
</a>
{{ end }}
