hugo-theme-minima/layouts/_default/terms.html
2021-07-18 16:34:01 +08:00

14 lines
No EOL
345 B
HTML

{{ define "main" }}
<main>
<h2>{{ .Title }}</h2>
<nav class="col">
{{ $data := .Data }}
{{ range $key, $value := .Data.Terms.ByCount }}
<a class="row as-s mb-1" href="/{{ $data.Plural }}/{{ $value.Name }}">
{{ $value.Name }}
<span class="tag ml-1">{{ $value.Count }}</span>
</a>
{{ end }}
</nav>
</main>
{{ end }}