github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/layouts/partials/breadcrumb.html (about) 1 <nav aria-label="breadcrumb" class="d-none d-md-block d-print-none"> 2 <ol class="breadcrumb spb-1"> 3 {{ template "breadcrumbnav" (dict "p1" . "p2" .) }} 4 </ol> 5 </nav > 6 {{ define "breadcrumbnav" }} 7 {{ if .p1.Parent }} 8 {{ if not .p1.Parent.IsHome }} 9 {{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }} 10 {{ end }} 11 {{ else if not .p1.IsHome }} 12 {{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }} 13 {{ end }} 14 {{ $isActive := eq .p1 .p2 }} 15 <li class="breadcrumb-item{{ if $isActive }} active{{ end }}" {{ if $isActive }}aria-current="page"{{ end }}> 16 <a href="{{ .p1.Permalink }}">{{ .p1.LinkTitle }}</a> 17 </li> 18 {{ end }}