Print ordinal date suffixes (st/nd/rd/th)

Weird how that function can do two things instead of one…

Anyway, here is the changed version:

{{ $format := .format }}
{{ $date := .date }}
{{- $shortend := humanize $date.Day -}}
{{- return $date.Format (printf $format $shortend) -}}