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

terms.html « _default « layouts - github.com/zwbetz-gh/papercss-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e92be4ae51207f440e2660274b38adfe60e6cee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{ define "main" }}

<h1>{{ .Title }}</h1>
{{ $type := .Type }}
{{ range $key, $value := .Data.Terms.ByCount }}
  {{ $name := .Name }}
  {{ $count := .Count }}
  {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
  <h2 class="post-list">
    <a href="{{ .Permalink }}">
      {{ printf "(%d) %s" $count $name }}
    </a>
  </h2>
  {{ end }}
{{ end }}

{{ end }}