{{- 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 {}")) }} By {{- (delimit $author ", " ) }} {{- else }} {{- if .GetPage ( printf "%s%s" "/authors/" $author) }} {{- with .GetPage ( printf "%s%s" "/authors/" $author) }} By {{- .Title }} {{- end }} {{- else }} By {{- $author }} {{- end }} {{- end }} {{- end -}}