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

github.com/vaga/hugo-theme-m10c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien CASTERS <fabien@vaga.io>2020-06-29 20:32:56 +0300
committerFabien <vaga@users.noreply.github.com>2020-06-29 20:48:02 +0300
commit96c25fe8921320824a1935963edb17b5b2421c07 (patch)
tree5a0403404d36bc867f119baa5f1fa27066aa7f13 /layouts
parent71ab671245b3471f2884381b7fbada192a24695a (diff)
Improve terms list
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/terms.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index efce125..86519b6 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -1,16 +1,16 @@
{{ define "main" }}
<article>
<h1>{{ .Title }}</h1>
- <ul class="posts-list">
- {{ range .Data.Terms.Alphabetical }}
- <li class="posts-list-item">
- <a class="posts-list-item-title" href="{{ .Page.Permalink }}">
+ <ul class="tags-list">
+ {{ range .Data.Terms.ByCount }}
+ <li class="tags-list-item">
+ {{ partial "icon.html" (dict "ctx" $ "name" "tag") }}
+ <a class="tags-list-item-title" href="{{ .Page.Permalink }}">
+ ({{ .Count }})
{{ .Page.Title }}
- </a>
- {{ .Count }}
+ </a>
</li>
{{ end }}
</ul>
- {{ partial "pagination.html" $ }}
</article>
{{ end }}