diff --git a/layouts/_partials/author.html b/layouts/_partials/author.html index 8f2758fa..e3a8617c 100644 --- a/layouts/_partials/author.html +++ b/layouts/_partials/author.html @@ -1,9 +1,10 @@ {{- if or .Params.author site.Params.author }} -{{- $author := (.Params.author | default site.Params.author) }} -{{- $author_type := (printf "%T" $author) }} -{{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }} -{{- (delimit $author ", " ) }} -{{- else }} -{{- $author }} -{{- end }} + {{- $author := (.Params.author | default site.Params.author) }} + {{- $author_type := (printf "%T" $author) }} + + {{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }} + {{- (delimit $author ", " ) }} + {{- else }} + {{- $author }} + {{- end }} {{- end -}}