mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
author(partial): fix multiple authors in config displayed incorrectly
* is of type `[]interface {}` and not `[]string`
This commit is contained in:
parent
44bc299ca3
commit
9ac0f391f6
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user