Merge 4b663ca8e357631f8517030081d13f0b9836659c into 375155061d42c6d7eb44ad4fe980d4ae021de66b

This commit is contained in:
Thiago Perrotta 2022-03-22 22:56:45 +08:00 committed by GitHub
commit d9673b5b44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
{{- if or .Params.author .Site.Params.author }}
{{- $author := (.Params.author | default .Site.Params.author) }}
{{- if or .Params.author .Site.Params.author .Site.Author.name }}
{{- $author := (.Params.author | default .Site.Params.author | default .Site.Author.name) }}
{{- $author_type := (printf "%T" $author) }}
{{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }}
{{- (delimit $author ", " ) }}