{{- with . -}} {{ with try ( time.Format "Jan 2, 2006" . ) }} {{ .Value }} {{ else }} {{ . }} {{ end }} {{- end -}}