hugo-PaperMod/layouts/partials/author.html

10 lines
318 B
HTML
Raw Normal View History

{{- if or .Params.author .Site.Params.author }}
2021-03-30 14:37:36 +02:00
{{- $author := (.Params.author | default .Site.Params.author) }}
{{- $author_type := (printf "%T" $author) }}
2021-03-30 14:37:36 +02:00
{{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }}
{{- (delimit $author ", " ) }}
{{- else }}
{{- $author }}
{{- end }}
{{- end -}}