hugo-theme-terminal

My Fork of the Terminal Hugo Theme
git clone https://git.repetitions.de/hugo-theme-terminal

taxonomy.html (601B)


 1 {{ define "main" }}
 2   <div class="terms">
 3     <h1>{{ .Title }}</h1>
 4     {{ with .Content }}
 5       <div class="index-content">
 6         {{ . }}
 7       </div>
 8     {{ end }}
 9     <ul>
10       {{ $type := .Type }}
11       {{ range $key, $value := .Data.Terms.Alphabetical }}
12         {{ $name := .Name }}
13         {{ $count := .Count }}
14         {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
15           <li>
16             <a class="terms-title" href="{{ .Permalink }}">
17               {{- .Name }} [{{ $count }}]
18             </a>
19           </li>
20         {{ end }}
21       {{ end }}
22     </ul>
23   </div>
24 {{ end }}
25