diff options
author | dataCobra <datacobra@thinkbot.de> | 2020-12-17 09:22:24 +0300 |
---|---|---|
committer | dataCobra <datacobra@thinkbot.de> | 2020-12-17 09:22:24 +0300 |
commit | e1a3861f26af02bcdfc33b5c3a8a7996b358ae6c (patch) | |
tree | 52ec4fd0fc03fae625e5ad38e4b7109932320416 | |
parent | c4493872bfeb03a4b972aa1f1af8b152ed01fa98 (diff) |
Revert "Fix #40 with an if condition"
This reverts commit 4a1fcb1370db35e5d68c6962cd674776e10769a4.
-rw-r--r-- | layouts/_default/terms.html | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 252cb0f..13024c4 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -4,7 +4,6 @@ {{ $max := len (index $.Site.Taxonomies.tags.ByCount 0).Pages }} {{ $min := len (index $.Site.Taxonomies.tags.ByCount.Reverse 0).Pages }} - {{ if eq $max $min }} {{ $maxFontSize := 2.5 }} {{ $minFontSize := 1.0 }} {{ $steps := div (sub $maxFontSize $minFontSize) (sub $max $min) }} @@ -17,6 +16,5 @@ {{ $curFontSize := (add $minFontSize (mul (sub $maxFontSize $minFontSize) $weigth) ) }} <a style="font-size: {{ $curFontSize }}rem;" href="{{ absURL $data.Plural }}/{{ $value.Name }}/">{{ $value.Name }}<sup>{{ $value.Count }}</sup></a> {{ end }} - {{ end }} </div> {{ end }} |