hugo-theme-minima/layouts/_default/terms.html
2022-11-09 16:03:19 +08:00

16 lines
No EOL
476 B
HTML

{{ define "main" }}
<main class="container mx-auto">
<h2 class="text-3xl font-bold">{{ .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 | relLangURL }}/{{ $value.Name }}">
{{ $value.Name }}
</a>
<span class="">{{ $value.Count }}</span>
</div>
{{ end }}
</nav>
</main>
{{ end }}