{{ define "breadcrumbnav" }} {{ if .p1.Parent }} {{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }} {{ else if not .p1.IsHome }} {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }} {{ end }} {{ $attr := "text-muted focus:underline focus:outline-none pr-1 whitespace-nowrap" }} {{ if eq .p1 .p2 }} {{ $attr = "focus:underline focus:outline-none font-bold pr-1 hidden md:block" }} {{ end }}
  • {{ $title := .p1.Title }} {{ if .p1.IsHome }}{{ $title = .p1.Site.Title }}{{ end }} {{ $title }}
  • {{ if ne .p1 .p2 }}
  • /
  • {{ end }} {{ end }}