diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-11-06 16:07:46 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-11-06 16:07:46 +0800 |
commit | 7f314ceecd2df405950419f6cc2ca2dc18d23cd4 (patch) | |
tree | f478e8791db34dcb05b98affd8396fb371f9ea6b /layouts | |
parent | 8d390991f895e079e21f5d1c550e0736a29e8cea (diff) |
refactor(terms): remove tags and categories class
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/terms.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 08498f6..abbc170 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -5,37 +5,37 @@ {{ $terms := .Data.Terms.ByCount -}} {{ $length := len $terms -}} {{ if eq $name "categories" -}} - <div class="categories"> - <div class="categories-title"> + <div class="terms"> + <div class="terms-title"> {{ if eq $length 0 -}} {{ T "zeroCategoryCounter" }} {{- else -}} {{ T "categoryCounter" $length }} {{- end }} </div> - <div class="categories-tags"> + <div class="terms-tags"> {{ range $key, $value := $terms -}} - <a class="category-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}/"> + <a class="terms-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}/"> {{ $value.Term }} - <span class="category-count">{{ len $value.Pages }}</span> + <span class="terms-count">{{ len $value.Pages }}</span> </a> {{ end -}} </div> </div> {{- else if eq $name "tags" -}} - <div class="tag-cloud"> - <div class="tag-cloud-title"> + <div class="terms"> + <div class="terms-title"> {{ if eq $length 0 -}} {{ T "zeroTagCounter" }} {{- else -}} {{ T "tagCounter" $length }} {{- end }} </div> - <div class="tag-cloud-tags"> + <div class="terms-tags"> {{- range $key, $value := $terms }} - <a href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}/"> + <a class="terms-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}/"> {{ $value.Term }} - <span class="tag-count">{{ len $value.Pages }}</span> + <span class="terms-count">{{ len $value.Pages }}</span> </a> {{ end -}} </div> |