{{ partial "header.html" . }} {{ partial "navbar.html" . }}

{{ .Title }}

{{ if .Params.author }}

Author : {{ .Params.author }}

{{ end }}

Published on {{ .Date.Format "Monday 2 January 2006" }}


 
{{ .Content }}
 

{{ if .Params.tags }} {{ $tags := .Params.tags }}
{{ if not (eq (len $.Site.Taxonomies.tags) 0) }} {{ $fontUnit := "rem" }} {{ $largestFontSize := 2.25 }} {{ $smallestFontSize := 0.25 }} {{ $fontSpread := sub $largestFontSize $smallestFontSize }} {{ $max := add (len (index $.Site.Taxonomies.tags.ByCount 0).Pages) 1 }} {{ $min := len (index $.Site.Taxonomies.tags.ByCount.Reverse 0).Pages }} {{ $spread := sub $max $min }} {{ $fontStep := div $fontSpread $spread }} {{ range $name, $taxonomy := $.Site.Taxonomies.tags }} {{ $currentTagCount := len $taxonomy.Pages }} {{ $currentFontSize := (add $smallestFontSize (mul (sub $currentTagCount $min) $fontStep) ) }} {{ $count := len $taxonomy.Pages }} {{ $weigth := div (sub (math.Log $count) (math.Log $min)) (sub (math.Log $max) (math.Log $min)) }} {{ $currentFontSize := (add $smallestFontSize (mul (sub $largestFontSize $smallestFontSize) $weigth) ) }} {{ range $tags }} {{ if eq $name . }}  {{ $name }}  {{ end }} {{ end }} {{ end }} {{ end }}
{{ end }}
{{ partial "footer.html" . }}