selfprivacy.org/_vendor/github.com/google/docsy/layouts/partials/taxonomy_terms_article.html

13 lines
505 B
HTML
Raw Normal View History

2024-04-25 22:15:39 +00:00
{{ $context := .context -}}
{{ $taxo := .taxo -}}
{{ if (gt (len ($context.GetTerms $taxo)) 0) -}}
2024-04-21 23:04:16 +00:00
<div class="taxonomy taxonomy-terms-article taxo-{{ urlize $taxo }}">
<h5 class="taxonomy-title">{{ humanize $taxo }}:</h5>
<ul class="taxonomy-terms">
2024-04-25 22:15:39 +00:00
{{ range ($context.GetTerms $taxo) -}}
2024-04-21 23:04:16 +00:00
<li><a class="taxonomy-term" href="{{ .Permalink }}" data-taxonomy-term="{{ urlize .LinkTitle }}"><span class="taxonomy-label">{{ .LinkTitle }}</span></a></li>
2024-04-25 22:15:39 +00:00
{{ end -}}
2024-04-21 23:04:16 +00:00
</ul>
</div>
2024-04-25 22:15:39 +00:00
{{ end -}}