2020-10-25 07:45:51 +01:00
|
|
|
{{- if or .Params.author .Site.Params.author }}
|
|
|
|
{{- $author := (.Params.author | default .Site.Params.author)}}
|
|
|
|
{{- $author_type := (printf "%T" $author) }}
|
2020-10-25 08:31:49 +01:00
|
|
|
{{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}") ) }}
|
2020-10-25 07:45:51 +01:00
|
|
|
{{- (delimit $author ", " ) }}
|
|
|
|
{{- else }}
|
|
|
|
{{- $author }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end -}}
|