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