github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/layouts/partials/taxonomy_terms_article.html (about)

     1  {{ $context := .context  }}
     2  {{ $taxo := .taxo  }}
     3  {{ if (gt (len ($context.GetTerms $taxo)) 0)}}
     4  <div class="taxonomy taxonomy-terms-article taxo-{{ urlize $taxo }}">
     5    <h5 class="taxonomy-title">{{ humanize $taxo }}:</h5>
     6    <ul class="taxonomy-terms">
     7      {{ range ($context.GetTerms $taxo) }}
     8        <li><a class="taxonomy-term" href="{{ .Permalink }}" data-taxonomy-term="{{ urlize .LinkTitle }}"><span class="taxonomy-label">{{ .LinkTitle }}</span></a></li>
     9      {{ end }}
    10    </ul>
    11  </div>
    12  {{ end }}