This repository has been archived on 2024-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
hugo-theme-nocolor/layouts/_default/terms.html
2019-11-20 19:56:22 +01:00

18 lines
399 B
HTML

{{- define "main" }}
<div>
<p>{{ .Title }}:</p>
<ul>
{{- $type := .Type }}
{{- range $.Data.Terms.ByCount }}
{{- $count := .Count }}
{{- with $.Site.GetPage (lower (printf "/%s/%s" $type (urlize .Name))) }}
<li>
<a href="{{ .Permalink }}">{{ .Name }}</a>
<span>&#40;{{ $count }}&#41;</span>
</li>
{{- end }}
{{- end }}
</ul>
</div>
{{- end }}