| Port fzakaria.com design to Hugo and add a homepage profile | 1 | {{- $f := . -}} |
| 2 | {{- $s := printf "%.2f" $f -}} | |
| 3 | {{- $s = strings.TrimRight "0" $s -}} | |
| 4 | {{- $s = strings.TrimRight "." $s -}} | |
| 5 | {{- if eq $s "" }}{{ $s = "0" }}{{ end -}} | |
| 6 | {{- if eq $s "-0" }}{{ $s = "0" }}{{ end -}} | |
| 7 | {{- return $s -}} |