gohugo-theme-bree/layouts/partials/author.html
2022-05-16 02:13:01 +02:00

12 lines
435 B
HTML

{{- /* First, check for current page author(s) */}}
{{- if .Params.author }}
{{- $author_type := (printf "%T" .Params.author) }}
{{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }}
{{- (delimit .Params.author ", " ) }}
{{- else }}
{{- .Params.author }}
{{- end }}
{{- /* Otherwise, get site authors */}}
{{- else if site.Author.name }}
{{- site.Author.name }}
{{- end -}}