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: 350f62e20f304091cb9c57db83f6073310b6dbe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{ 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">
    <span class="badge">{{ $count }}</span> 
    <a href="{{ .Permalink }}">{{ $name }}</a>
  </h2>
  {{ end }}
{{ end }}

{{ end }}