{{- if or .Params.author site.Params.author }}
{{- $author := (.Params.author | default site.Params.author) }}
{{- $author_type := (printf "%T" $author) }}
{{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }}
{{- range $a := .Site.Data.cncz.authors }}
{{- range $i, $b := $author }}
{{- if eq $a.login $b }}
{{- if isset $a "url" }}
{{$a.name | title}}
{{- else }}
{{$a.name | title }}
{{- end }}
{{- if lt (add 1 $i) (len $author) }}
{{- printf ", " }}
{{- end }}
{{- end }}
{{- end }}
{{- end}}
{{- else }}
{{- range $a := .Site.Data.cncz.authors }}
{{- if eq $a.login $author }}
{{- if isset $a "url" }}
{{$a.name | title}}
{{- else }}
{{$a.name | title }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end -}}