hugo-theme-re-terminal/layouts/_default/terms.html

23 lines
558 B
HTML
Raw Normal View History

2022-06-21 13:50:51 +00:00
{{ define "main" }}
<div class="terms">
<h1>{{ .Title }}</h1>
{{ with .Content }}
2023-06-09 22:27:17 +00:00
<div class="index-content">
{{ . }}
</div>
{{ end }}
2022-06-21 13:50:51 +00: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-09 22:27:17 +00:00
<a class="terms-title" href="{{ .Permalink }}">{{ .Name }} [{{ $count }}]</a>
2022-06-21 13:50:51 +00:00
</li>
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}