12 lines
435 B
HTML
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 -}}
|