hugo-PaperMod/layouts/partials/author.html

10 lines
316 B
HTML
Raw Permalink Normal View History

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