mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
9ac0f391f6
* is of type `[]interface {}` and not `[]string`
10 lines
318 B
HTML
10 lines
318 B
HTML
{{- 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 {}") ) }}
|
|
{{- (delimit $author ", " ) }}
|
|
{{- else }}
|
|
{{- $author }}
|
|
{{- end }}
|
|
{{- end -}}
|