{{ if . }} {{ $fontSmall := 1 }} {{ $fontBig := 1.6 }} {{ $fontSpread := sub $fontBig $fontSmall }} {{ $termCount := slice }} {{ range . }} {{ $termCount = append .Count $termCount }} {{ end }} {{ $termCount = sort $termCount }} {{ $min := int (index $termCount 0) }} {{ $max := add (int (index $termCount (sub (len $termCount) 1))) 1 }}
{{ range . }} {{ $weight := div (sub (math.Log .Count) (math.Log $min)) (sub (math.Log $max) (math.Log $min)) }} {{ $fontSize := (add $fontSmall (mul $fontSpread $weight)) }} {{- .Page.Title -}} ({{- .Count -}}) {{ end }}
{{ end }}