{{ .Date.Format "Mon Jan 2, 2006" }} {{ i18n "authored_by" }} {{ if .Params.authors }} {{ $s := newScratch }} {{ $s.Set "len" (len .Params.authors) }} {{ $s.Add "len" -1 }} {{ range $idx, $author := .Params.authors -}} {{ path.BaseName $author }} {{ if ne $idx ($s.Get "len") }}, {{end}} {{- end }} {{ else }} {{ path.BaseName (.Params.author | default .Site.Params.author) }} {{ end }}