{{- $lastUpdated := (T "lastUpdated") | default "Last updated on" -}} {{- $page := . -}} {{- if site.Params.displayUpdatedDate -}} {{- with .Lastmod -}} {{ $datetime := (time.Format "2006-01-02T15:04:05.000Z" .) }}
{{ $lastUpdated }} {{- if site.Params.displayUpdatedAuthor -}} {{- with $page.GitInfo -}} {{ print " • " .AuthorName | safeHTML }} {{- end -}} {{- end -}}
{{- else -}}
{{- end -}} {{- else -}}
{{- end -}}