mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-22 17:15:07 +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