cupper-hugo-theme/layouts/_default/terms.html

25 lines
705 B
HTML
Raw Normal View History

{{ define "main" }}
<main id="main">
2019-02-14 18:31:24 +01:00
<h1>{{ .Title }}</h1>
<ul class="patterns-list">
{{ $type := .Type }}
{{ range $key, $value := .Data.Terms.ByCount }}
{{ $name := .Name }}
{{ $count := .Count }}
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
<li>
<h2>
<a href="{{ .Permalink }}">
<svg class="tag-icon" aria-hidden="true" viewBox="0 0 177.16535 177.16535" focusable="false">
<use xlink:href="#tag"></use>
</svg>
{{ printf "(%d) %s" $count $name }}
</a>
</h2>
</li>
{{ end }}
{{ end }}
</ul>
</main>
{{ end }}