{{- $date := .Lastmod -}}
{{- with .Params.dateFormat -}}
  {{- $date | time.Format . -}}
{{- else -}}
  {{- with .Site.Params.dateFormat -}}
    [{{- or $.Site.Params.updatedDatePrefix "Updated: " }} {{ $date | time.Format . -}}]
  {{- else -}}
    [{{- or $.Site.Params.updatedDatePrefix "Updated: " }} {{ $date | time.Format "2006-01-02" -}}]
  {{- end -}}
{{- end -}}