hugo-theme-flat/layouts/_default/taxonomy.html

14 lines
443 B
HTML
Raw Permalink Normal View History

2022-04-27 13:54:00 +00:00
{{ define "main" }}
<section id="tags">
{{ $data := .Data }}
{{ range $key, $value := .Data.Terms.ByCount }}
{{ if $value.Name}}
<span class="tag">
<a href="{{ $value.Name | urlize }}">
{{ $value.Name }} <span>({{ $value.Count }})</span>
</a>
</span>
{{ end }}
{{ end }}
</section>
{{ end }}