hugo-theme-minima/layouts/_default/terms.html
2022-11-07 16:57:21 +08:00

16 lines
No EOL
441 B
HTML

{{ define "main" }}
<main class="container">
<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 }}