Add terms.html template.

Add index.html template.
Fix list.html template.
This commit is contained in:
panr
2020-06-17 16:52:02 +02:00
parent b19e56a9d8
commit 0925abe5d8
6 changed files with 94 additions and 11 deletions

View File

@ -0,0 +1,17 @@
{{ define "main" }}
<div class="terms">
<h1>{{ .Title }}</h1>
<ul>
{{ $type := .Type }}
{{ range $key, $value := .Data.Terms.Alphabetical }}
{{ $name := .Name }}
{{ $count := .Count }}
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
<li>
<a class="terms-title" href="{{ .Permalink }}">{{ .Name }} ({{ $count }})</a>
</li>
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}