{{- $title := partial "meta-title.html" . -}} {{- $author := index .Site.Data.authors .Section -}} {{- $dash := print " " ("—" | htmlUnescape) " " -}} {{- with not (eq .Title $.Site.Title) -}} {{- $title = print $title $dash -}} {{- if (eq $.Page.Kind "term") -}} {{- $title = print "#" (lower $title) -}} {{- end -}} {{- end -}} {{- with $site := $.Site.Title -}} {{- if (in (slice "taxonomy" "term" "page") $.Page.Kind) -}} {{- $title = print $title $site -}} {{- end -}} {{- if (in (slice "home") $.Page.Kind) -}} {{- $title = print $site -}} {{- end -}} {{- if (in (slice "section") $.Page.Kind) -}} {{- $title = print $author.title -}} {{- with $section := strings.TrimLeft "section." $.Page.Layout | title -}} {{- $title = print $section $dash $author.title -}} {{- end -}} {{- end -}} {{- end -}} {{- $title -}}