hugo-theme-minima/layouts/_default/terms.html

14 lines
349 B
HTML
Raw Normal View History

2021-07-18 10:34:01 +02:00
{{ define "main" }}
<main>
<h2>{{ .Title }}</h2>
2021-08-29 17:55:45 +02:00
<nav class="flex flex-col">
2021-07-18 10:34:01 +02:00
{{ $data := .Data }}
{{ range $key, $value := .Data.Terms.ByCount }}
2021-08-29 17:55:45 +02:00
<a class="mb-5 self-start" href="/{{ $data.Plural }}/{{ $value.Name }}">
2021-07-18 10:34:01 +02:00
{{ $value.Name }}
2021-08-29 17:55:45 +02:00
<span class="">{{ $value.Count }}</span>
2021-07-18 10:34:01 +02:00
</a>
{{ end }}
</nav>
</main>
{{ end }}