2020-10-25 06:45:51 +00:00
|
|
|
{{- if or .Params.author .Site.Params.author }}
|
2021-03-30 13:37:36 +01:00
|
|
|
{{- $author := (.Params.author | default .Site.Params.author) }}
|
2020-10-25 06:45:51 +00:00
|
|
|
{{- $author_type := (printf "%T" $author) }}
|
2021-03-30 13:37:36 +01:00
|
|
|
{{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }}
|
2020-10-25 06:45:51 +00:00
|
|
|
{{- (delimit $author ", " ) }}
|
|
|
|
{{- else }}
|
|
|
|
{{- $author }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end -}}
|