{{ $title := .Site.Title }} {{ if and (not .IsHome) .Title }} {{ $title = printf "%s | %s" .Title .Site.Title }} {{ end }}