{{ define "breadcrumb" }} {{ if .p1.Parent }} {{ template "breadcrumb" (dict "p1" .p1.Parent "p2" .p2 ) }} {{ else if not .p1.IsHome }} {{ template "breadcrumb" (dict "p1" .p1.Site.Home "p2" .p2 ) }} {{ end }} {{/* $header := substr (delimit (findRE "^#{1} ([^{\n]+)" .p1.RawContent 1) "") 2 */}} {{ if eq .p1.Kind "page" }} {{ .p1.File.LogicalName }} {{ else }} {{ or .p1.File.ContentBaseName .p1.Site.Title }} {{ end }} {{ end }}