order tags a-to-z

This commit is contained in:
zwbetz 2019-08-24 13:09:26 -05:00
parent f924417a5d
commit bf90b1e4da
1 changed files with 3 additions and 8 deletions

View File

@ -2,22 +2,17 @@
<main id="main">
<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) }}
{{ range .Data.Terms.Alphabetical }}
<li>
<h2>
<a href="{{ .Permalink }}">
<a href="{{ .Page.RelPermalink }}">
<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 }}
{{ printf "(%d) %s" .Count .Page.Title }}
</a>
</h2>
</li>
{{ end }}
{{ end }}
</ul>
</main>