Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz <zwbetz@gmail.com>2019-08-24 21:09:26 +0300
committerzwbetz <zwbetz@gmail.com>2019-08-24 21:09:26 +0300
commitbf90b1e4da7aacf16d39146e0a0029d465228d23 (patch)
tree809f7beefe37be2b6278877c36f591e5350ed5a4
parentf924417a5df78bb389c9a580966300f002856d5b (diff)
order tags a-to-z
-rw-r--r--layouts/_default/terms.html11
1 files changed, 3 insertions, 8 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index a2ace31..d3f541f 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -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>