yann.verry.org/themes/PaperMod/layouts/partials/author.html
Yann Verry 138071bfb8
All checks were successful
continuous-integration/drone/push Build is passing
add recursive
2022-10-25 22:21:18 +02:00

10 lines
316 B
HTML

{{- 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 -}}