summaryrefslogtreecommitdiff
path: root/themes/PaperMod/layouts/partials/author.html
blob: 4582b126c4cc331310f5938f66b726f24fa16f52 (plain)
1
2
3
4
5
6
7
8
9
{{- 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 }}
{{- end -}}