selfprivacy.org/_vendor/github.com/google/docsy/layouts/partials/taxonomy_terms_article.html
2024-04-26 01:15:39 +03:00

13 lines
505 B
HTML

{{ $context := .context -}}
{{ $taxo := .taxo -}}
{{ if (gt (len ($context.GetTerms $taxo)) 0) -}}
<div class="taxonomy taxonomy-terms-article taxo-{{ urlize $taxo }}">
<h5 class="taxonomy-title">{{ humanize $taxo }}:</h5>
<ul class="taxonomy-terms">
{{ range ($context.GetTerms $taxo) -}}
<li><a class="taxonomy-term" href="{{ .Permalink }}" data-taxonomy-term="{{ urlize .LinkTitle }}"><span class="taxonomy-label">{{ .LinkTitle }}</span></a></li>
{{ end -}}
</ul>
</div>
{{ end -}}