diff --git a/layouts/taxonomy/tag.terms.html b/layouts/taxonomy/tag.terms.html index 00da0c3..4489421 100644 --- a/layouts/taxonomy/tag.terms.html +++ b/layouts/taxonomy/tag.terms.html @@ -1,6 +1,14 @@ {{ define "main" }} - {{ $tags := (site.Taxonomies.tags.Alphabetical) }} + {{ $tags := (site.Taxonomies.tags) }} + {{ $fontUnit := "rem" }} + {{ $lgFontSize := 2.6 }} + {{ $smFontSize := 1.0 }} + {{ $fontSpread := (sub ($lgFontSize) ($smFontSize)) }} + {{ $max := (add (len (index $tags.ByCount 0).Pages) 1) }} + {{ $min := (len (index $tags.ByCount.Reverse 0).Pages) }} + {{ $spread := (sub ($max) ($min)) }} + {{ $fontStep := (div ($fontSpread) ($spread)) }} {{ (partial "breadcrumb" .) }} @@ -8,10 +16,14 @@