diff options
Diffstat (limited to 'layouts/_default/terms.html')
| -rw-r--r-- | layouts/_default/terms.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100644 index 0000000..20e8f29 --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,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 }} |
