<div id="breadcrumbs">
    <a href="/">Home</a>
    {{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
</div>
{{- 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 -}}
{{- if not .p1.IsHome -}}
<b class="p-1"> / 
{{ if .p1.Draft }}
<span class="bg-warning py-1 px-2 rounded"><b>Draft</b></span>
{{ end }}
</b><a href="{{ .p1.Permalink }