order tags a-to-z
This commit is contained in:
parent
f924417a5d
commit
bf90b1e4da
|
@ -2,23 +2,18 @@
|
|||
<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>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user