aboutsummaryrefslogtreecommitdiff
path: root/themes/even/layouts/_default/terms.html
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-24 03:20:47 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-24 03:20:47 +0000
commitf24f2d15275961f1c0144e68fde75a60aeaaa165 (patch)
tree38be1626f3ade436fbd17eadb2753fa2f0effb37 /themes/even/layouts/_default/terms.html
parentbf04383b34c4a4fdfe239de2805a30a051921002 (diff)
downloadcapotej.com-f24f2d15275961f1c0144e68fde75a60aeaaa165.tar.gz
move to bear theme
Diffstat (limited to 'themes/even/layouts/_default/terms.html')
-rw-r--r--themes/even/layouts/_default/terms.html44
1 files changed, 0 insertions, 44 deletions
diff --git a/themes/even/layouts/_default/terms.html b/themes/even/layouts/_default/terms.html
deleted file mode 100644
index 04b98f8..0000000
--- a/themes/even/layouts/_default/terms.html
+++ /dev/null
@@ -1,44 +0,0 @@
-{{ define "title" }}{{ T .Data.Plural }} - {{ .Site.Title }}{{ end }}
-
-{{ define "content" }}
- {{ $name := .Data.Plural -}}
- {{ $terms := .Data.Terms.ByCount -}}
- {{ $length := len $terms -}}
- {{ if eq $name "categories" }}
- <div class="categories">
- <div class="categories-title">
- {{ if eq $length 0 }}
- {{ T "zeroCategoryCounter" }}
- {{ else }}
- {{ T "categoryCounter" $length }}
- {{ end }}
- </div>
- <div class="categories-tags">
- {{ range $key, $value := $terms }}
- <a class="category-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}/">
- {{ $value.Term }}
- <span class="category-count">{{ len $value.Pages }}</span>
- </a>
- {{ end }}
- </div>
- </div>
- {{ else if eq $name "tags" }}
- <div class="tag-cloud">
- <div class="tag-cloud-title">
- {{ if eq $length 0 }}
- {{ T "zeroTagCounter" }}
- {{ else }}
- {{ T "tagCounter" $length }}
- {{ end }}
- </div>
- <div class="tag-cloud-tags">
- {{ range $key, $value := $terms }}
- <a href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}/">
- {{ $value.Term }}
- <span class="tag-count">{{ len $value.Pages }}</span>
- </a>
- {{ end }}
- </div>
- </div>
- {{ end }}
-{{ end }} \ No newline at end of file