{{ $authors := .Params.authors }} {{ range $index, $author := $authors }} {{- $author -}}{{ if ne (add $index 1) (len $authors) }},{{ end }} {{ end }}