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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/terms.html')
-rw-r--r--layouts/_default/terms.html9
1 files changed, 3 insertions, 6 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index 9a9a796..08760a0 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -1,12 +1,9 @@
{{ define "main" }}
<div class="container">
- <article>
- {{ .Content }}
- </article>
<div class="section tags-list">
- {{ range $name, $taxonomy := .Site.Taxonomies.tags }}
- <a class="tag-cloud" href="{{"tags/" | relLangURL }}{{ $name | urlize }}">{{ lower $name }}&nbsp;({{ len $taxonomy }})</a>
- {{ end }}
+ {{- range $key, $value:= .Data.Terms -}}
+ <a class="tag-cloud" href="{{ "/" | absLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">{{ $key }}&nbsp;({{ $value.Count }})</a>
+ {{- end -}}
</div>
</div>
{{ end }}