{{ $authorName:= "John Doe"}}
{{ if .Site.Data.site.author}}
    {{ $authorName = .Site.Data.site.author.name }}
{{ end}}
{{ if eq (printf "%T" .Params.author ) "maps.Params" }}
    {{ with .Params.author }}
        {{ if .name }}
        {{ $authorName = .name }}
        {{ end }}
    {{ end }}
{{ end }}
{{ return $authorName }}
