summaryrefslogtreecommitdiffstats
path: root/layouts/_default/terms.html
blob: 20e8f298d88738811341d66f9913065a4e26b65a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{{ define "main" }}

{{/* This template is for list of all Tags */}}
<div class="articles">
    <h1 class="page-title">
        {{ with .Title }}
            {{ i18n "tag_cloud" . }}
        {{ end }}
    </h1>

    {{ $tags := site.Taxonomies.tags.ByCount }}

    <div class="tags-wrapper">
        <ul class="tags-cloud">
            {{ range uniq $tags }}
                {{ if .Term }}
                    {{ $tagURL := printf "tags/%s" .Term | relURL }}
                    <li class="tag">
                        <a class="tag-link" href="{{ $tagURL }}">
                            {{ .Term }} ({{ .Count }})
                        </a>
                    </li>
                {{ end }}
            {{ end }}
        </ul>
    </div>
</div>

{{ end }}