Welcome to mirror list, hosted at ThFree Co, Russian Federation.

terms.html « _default « layouts - github.com/zwbetz-gh/cayman-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0cbcabfdaab7197e2303eb781a80b4d0a62afdc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{ define "main" }}
  <h1>{{ .Title }}</h1>
  <ul>
    {{ $type := .Type }}
    {{ range $key, $value := .Data.Terms.ByCount }}
      {{ $name := .Name }}
      {{ $count := .Count }}
      {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
      <li>
        <a href="{{ .Permalink }}">
          {{ printf "(%d) %s" $count $name }}
        </a>
      </li>
      {{ end }}
    {{ end }}
  </ul>
{{ end }}