selfprivacy.org/_vendor/github.com/google/docsy/layouts/partials/taxonomy_terms_article.html
2024-04-22 02:04:16 +03:00

12 lines
497 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 }}