summaryrefslogtreecommitdiff
path: root/themes/neonxp/layouts/_default/terms.html
blob: 49d993fe91ebafce79271d834292c44c869978aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{ define "main" }}
<article>
    <h1>{{ i18n .Title }}</h1>
    {{ .Content }}
</article>
<article>
    <ul class="terms">
        {{ range $key, $value := .Data.Terms }}
        {{ $postCount := len $value.Pages -}}

        <li><a href="
             /{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">{{ $key
                }}</a>&nbsp;({{$postCount}})</li>
        {{ end }}
    </ul>
</article>
{{ end }}