author(partial): fix multiple authors in config displayed incorrectly

* is of type `[]interface {}` and not `[]string`
This commit is contained in:
Aditya Telange 2020-10-25 13:01:49 +05:30
parent 44bc299ca3
commit 9ac0f391f6
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

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