{{ $title := .Site.Title -}} {{ if .Params.Title -}} {{ $title = printf "%s | %s" .Params.Title $title -}} {{ end -}} {{ $description := "" -}} {{ if .IsHome -}} {{ with .Site.Params.description }}{{ $description = . }}{{ end -}} {{ else if .IsPage -}} {{ if .Description -}} {{ $description = .Description -}} {{ else -}} {{ $description = .Summary -}} {{ end -}} {{ end }}