2022-06-21 15:50:51 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
<div class="terms">
|
|
|
|
<h1>{{ .Title }}</h1>
|
2023-04-26 23:50:25 +08:00
|
|
|
{{ with .Content }}
|
2023-06-10 00:27:17 +02:00
|
|
|
<div class="index-content">
|
|
|
|
{{ . }}
|
|
|
|
</div>
|
2023-04-26 23:50:25 +08:00
|
|
|
{{ end }}
|
2022-06-21 15:50:51 +02:00
|
|
|
<ul>
|
|
|
|
{{ $type := .Type }}
|
|
|
|
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
|
|
|
{{ $name := .Name }}
|
|
|
|
{{ $count := .Count }}
|
|
|
|
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
|
|
|
|
<li>
|
2023-06-10 00:27:17 +02:00
|
|
|
<a class="terms-title" href="{{ .Permalink }}">{{ .Name }} [{{ $count }}]</a>
|
2022-06-21 15:50:51 +02:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|