mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 02:21:37 +01:00
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 -}}
|