From a62a3e7755579d93ce3a87243dd277575930fffe Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Mon, 5 Nov 2018 21:49:16 -0500 Subject: init --- themes/even/layouts/_default/terms.html | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 themes/even/layouts/_default/terms.html (limited to 'themes/even/layouts/_default/terms.html') diff --git a/themes/even/layouts/_default/terms.html b/themes/even/layouts/_default/terms.html new file mode 100644 index 0000000..04b98f8 --- /dev/null +++ b/themes/even/layouts/_default/terms.html @@ -0,0 +1,44 @@ +{{ define "title" }}{{ T .Data.Plural }} - {{ .Site.Title }}{{ end }} + +{{ define "content" }} + {{ $name := .Data.Plural -}} + {{ $terms := .Data.Terms.ByCount -}} + {{ $length := len $terms -}} + {{ if eq $name "categories" }} +
+
+ {{ if eq $length 0 }} + {{ T "zeroCategoryCounter" }} + {{ else }} + {{ T "categoryCounter" $length }} + {{ end }} +
+
+ {{ range $key, $value := $terms }} + + {{ $value.Term }} + {{ len $value.Pages }} + + {{ end }} +
+
+ {{ else if eq $name "tags" }} +
+
+ {{ if eq $length 0 }} + {{ T "zeroTagCounter" }} + {{ else }} + {{ T "tagCounter" $length }} + {{ end }} +
+
+ {{ range $key, $value := $terms }} + + {{ $value.Term }} + {{ len $value.Pages }} + + {{ end }} +
+
+ {{ end }} +{{ end }} \ No newline at end of file -- cgit v1.2.3