test-cross-blogger/themes/PaperMod/layouts/partials/author.html

10 lines
316 B
HTML
Raw Normal View History

2024-06-25 15:51:17 +01:00
{{- 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 -}}