{{- $authorName := "" -}} {{- with .Site.Params.author -}} {{- if reflect.IsMap . -}} {{- with .name -}} {{- $authorName = . -}} {{- end -}} {{- else -}} {{- $authorName = . -}} {{- end -}} {{- end -}}