{{- $title := .Site.Title -}} {{- $desc := .Site.Params.description -}} {{- if and .Title (not .IsHome) -}} {{- $title = printf "%s | %s" .Title .Site.Title -}} {{- end -}} {{- with .Description }}{{ $desc = . }}{{ end -}} {{- if and (not .Description) .IsPage }}{{ with .Summary }}{{ $desc = . | plainify | truncate 160 }}{{ end }}{{ end -}}