{{- if .Site.Params.showAuthor -}} {{- $author := "" -}} {{- if .Params.author -}} {{- $author = .Params.author -}} {{- else if and .Site.Params.Author .Site.Params.Author.name -}} {{- $author = .Site.Params.Author.name -}} {{- end -}} {{- if $author -}}