blog/static/themes/hello-friend/layouts/_default/terms.html
Mathieu Broillet 30a29a3a11
All checks were successful
continuous-integration/drone/push Build is passing
started migration from joplin
2023-06-11 16:09:07 +02:00

20 lines
557 B
HTML

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