{{ $authors := partialCached "func/GetArticleAuthors" . .File.UniqueID }} {{ if eq (len $authors) 1 }} {{ with $author := index $authors 0 }} {{ with .avatar }}
{{ end }} {{ with .name }} {{ . }} {{ end }}
{{ end }} {{ else }}
{{ $avatarsWidth:= mul (len $authors) 15 }}
{{ range $index, $author := $authors }} {{ with .avatar }}
{{ end }} {{ end }}
{{ range $index, $author := $authors }} {{ .firstname }}{{ if ne (add $index 1) (len $authors) }},{{ end }} {{ end }}
{{ partial "icons/ui/toggle-open.html" . }}
{{ end }} {{ $script := resources.Get "js/collapseAuthors.js" }}