{{/* If `authors` is set and is not empty. */}} {{ if $.Params.authors }} {{ $authorLen := len $.Params.authors }} {{ if gt $authorLen 0 }} {{ range $k, $v := $.Params.authors -}} {{- if lt $k (sub $authorLen 1) -}}, {{ end }} {{ end }} {{ end }} {{ end }}