hugo-theme-minima/layouts/_default/terms.html
2021-08-29 23:55:45 +08:00

14 lines
No EOL
349 B
HTML

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