From 5e356c5f635d45f0241854d9f43f38b2f0bd44f9 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Tue, 10 Jul 2018 01:41:34 +0800 Subject: style(*): google js style & trim whitespace --- layouts/_default/terms.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'layouts/_default/terms.html') diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 04b98f8..08498f6 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,44 +1,44 @@ -{{ define "title" }}{{ T .Data.Plural }} - {{ .Site.Title }}{{ end }} +{{- define "title" }}{{ T .Data.Plural }} - {{ .Site.Title }}{{ end -}} -{{ define "content" }} +{{- define "content" -}} {{ $name := .Data.Plural -}} {{ $terms := .Data.Terms.ByCount -}} {{ $length := len $terms -}} - {{ if eq $name "categories" }} + {{ if eq $name "categories" -}}
- {{ if eq $length 0 }} + {{ if eq $length 0 -}} {{ T "zeroCategoryCounter" }} - {{ else }} + {{- else -}} {{ T "categoryCounter" $length }} - {{ end }} + {{- end }}
- {{ range $key, $value := $terms }} + {{ range $key, $value := $terms -}} {{ $value.Term }} {{ len $value.Pages }} - {{ end }} + {{ end -}}
- {{ else if eq $name "tags" }} + {{- else if eq $name "tags" -}}
- {{ if eq $length 0 }} + {{ if eq $length 0 -}} {{ T "zeroTagCounter" }} - {{ else }} + {{- else -}} {{ T "tagCounter" $length }} - {{ end }} + {{- end }}
- {{ range $key, $value := $terms }} + {{- range $key, $value := $terms }} {{ $value.Term }} {{ len $value.Pages }} - {{ end }} + {{ end -}}
- {{ end }} -{{ end }} \ No newline at end of file + {{- end }} +{{- end }} \ No newline at end of file -- cgit v1.2.3