mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-26 06:55:52 -05:00
bc2b82c370
* usage: author: ["me", "you"]
10 lines
277 B
HTML
10 lines
277 B
HTML
{{- if or .Params.author .Site.Params.author }}
|
|
{{- $author := (.Params.author | default .Site.Params.author)}}
|
|
{{- $author_type := (printf "%T" $author) }}
|
|
{{- if (eq $author_type "[]string") }}
|
|
{{- (delimit $author ", " ) }}
|
|
{{- else }}
|
|
{{- $author }}
|
|
{{- end }}
|
|
{{- end -}}
|