{{ if .Params.date }} {{ dateFormat "2 January 2006" .Params.date }} {{else}} {{ .Date.Format "2 January 2006" }} {{- end -}}