diff options
author | dataCobra <datacobra@thinkbot.de> | 2020-12-16 00:03:42 +0300 |
---|---|---|
committer | dataCobra <datacobra@thinkbot.de> | 2020-12-16 00:03:42 +0300 |
commit | 7085b0ac741e991bd75a43643dababcb6b71052d (patch) | |
tree | 90b1c9cde092b3a7f451c995870d758b6b38a05d | |
parent | 4a1fcb1370db35e5d68c6962cd674776e10769a4 (diff) |
Change if condition in terms.html
-rw-r--r-- | layouts/_default/terms.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 252cb0f..6e4da4e 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -4,7 +4,7 @@ {{ $max := len (index $.Site.Taxonomies.tags.ByCount 0).Pages }} {{ $min := len (index $.Site.Taxonomies.tags.ByCount.Reverse 0).Pages }} - {{ if eq $max $min }} + {{ if ne $max $min }} {{ $maxFontSize := 2.5 }} {{ $minFontSize := 1.0 }} {{ $steps := div (sub $maxFontSize $minFontSize) (sub $max $min) }} |