{{- $updated := (T "updated") | default "Updated" -}} {{- $publishDate := partial "utils/format-date" .PublishDate -}} {{- if and site.Params.displayAuthorInfo .Params.authors -}}
{{- $authorCount := len .Params.authors -}} {{- if eq $authorCount 1 -}} {{- $author := index .Params.authors 0 -}} {{- with $author.name -}} {{ . }} {{- end -}} {{- if and $author.name $author.handle -}} · {{- end -}} {{- with $author.handle -}} @{{ . }} {{- end -}} {{- else -}} {{- range $index, $author := .Params.authors -}} {{- if gt $index 0 -}} {{- if eq $index (sub $authorCount 1) -}}  &  {{- else -}} ,  {{- end -}} {{- end -}} {{- with $author.name -}} {{- if $author.handle -}} {{ . }} {{- else -}} {{ . }} {{- end -}} {{- end -}} {{- end -}} {{- end -}}
{{ $publishDate }}
{{- with .Lastmod -}} {{ $updateDate := partial "utils/format-date" . }} {{- if not (eq $publishDate $updateDate) -}} {{ $datetime := (time.Format "2006-01-02T15:04:05.000Z" .) }}
|
{{ $updated }}
{{- end -}} {{- end -}}
{{- end -}}