diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-10-25 13:01:49 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-10-25 13:01:49 +0530 |
| commit | 9ac0f391f602530ce5ae93bcb8f19a915a218fc7 (patch) | |
| tree | 971737ee5727e95ed235a733714005e97e5b7165 | |
| parent | 44bc299ca3b21600d2ed1bd01e83ca2ab83bc7ca (diff) | |
author(partial): fix multiple authors in config displayed incorrectly
* is of type `[]interface {}` and not `[]string`
| -rw-r--r-- | layouts/partials/author.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/author.html b/layouts/partials/author.html index f91a116..a1ef62c 100644 --- a/layouts/partials/author.html +++ b/layouts/partials/author.html @@ -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 }} |
