{{ block "title" . }} {{- $title := "" -}} {{- $siteTitle := $.Site.Title -}} {{- $subtitle := $.Site.Params.Subtitle -}} {{- $mainTitle := $siteTitle -}} {{- if $subtitle -}} {{- $mainTitle = printf "%s - %s" $siteTitle $subtitle -}} {{- end -}} {{- if .IsHome -}} {{- $title = $mainTitle -}} {{- else -}} {{- $title = printf "%s :: %s" .Title $mainTitle -}} {{- end -}}