{{- $lastUpdated := (T "lastUpdated") | default "Last updated on" -}} {{- if site.Params.displayUpdatedDate -}}
{{ partial "components/edit-url.html" (dict "source" "single" "context" .) }} {{- with .Lastmod -}} {{ $datetime := (time.Format "2006-01-02T15:04:05.000Z" .) }}
{{ $lastUpdated }}
{{- else -}}
{{- end -}} {{- else -}}
{{- end -}}