hugo-theme-minima/layouts/_default/terms.html
2022-11-05 17:45:26 +03:00

16 lines
No EOL
423 B
HTML

{{ define "main" }}
<main>
<h2>{{ .Title }}</h2>
<nav class="flex flex-col">
{{ $data := .Data }}
{{ range $key, $value := .Data.Terms.ByCount }}
<div class="mb-5 flex justify-between">
<a class="self-start" href="{{ $data.Plural | absLangURL }}/{{ $value.Name }}">
{{ $value.Name }}
</a>
<span class="">{{ $value.Count }}</span>
</div>
{{ end }}
</nav>
</main>
{{ end }}