We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cf3e08 commit dbb2c31Copy full SHA for dbb2c31
layouts/partials/author.html
@@ -0,0 +1,9 @@
1
+{{- if or .Params.author site.Params.author }}
2
+{{- $author := (.Params.author | default site.Params.author) }}
3
+{{- $author_type := (printf "%T" $author) }}
4
+{{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }}
5
+{{- (delimit $author ", " ) }}
6
+{{- else }}
7
+{{- $author }}
8
+{{- end }}
9
+{{- end -}}
0 commit comments