{{ $last := sub (len .Params.contributors) 1 -}}
{{- time.Format (default ":date_long" .Site.Params.dateFormat) .PublishDate -}}
{{- with .Params.categories -}}
in
{{- range $index, $category := . -}}
{{ if gt $index 0 }}, {{ end -}}
{{ . }}
{{- end }}
{{- end }}
{{- with .Params.contributors -}}
by
{{- range $index, $contributor := . -}}
{{- if gt $index 0 }}{{ if eq $index $last }} and {{ else }}, {{ end }}{{ end -}}
{{- with $.Site.GetPage "taxonomyTerm" (printf "contributors/%s" (urlize .)) -}}
{{ if $.Params.avatar -}}
{{ $image := .Resources.GetMatch (printf "**%s" .Params.avatar) -}}
{{ $imageLq := $image.Resize "15x15 webp q95" -}}
{{ $image = $image.Resize "60x60 webp q95" -}}
{{- end }}
{{- end -}}
{{ . }}
{{- end }}
{{- end -}}
{{- /* NOTE: classes 'stretched-link position-relative' are necessary to properly display the title attribute on hover */ -}}
{{/* trim subsequent whitespace */ -}}
{{- .ReadingTime }} {{ i18n "minute" .ReadingTime -}}
{{/* trim subsequent whitespace */ -}}