2022-04-07 23:52:00 +00:00
|
|
|
<ol class='nav navbar-nav'>
|
2022-03-29 22:52:36 +00:00
|
|
|
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
|
|
|
</ol>
|
|
|
|
{{ 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 }}
|
2022-04-07 23:52:00 +00:00
|
|
|
<li{{ if eq .p1 .p2 }} class='active'{{ end }}>
|
|
|
|
<a href='{{ .p1.RelPermalink }}'>{{ .p1.Title }}</a>
|
2022-03-29 22:52:36 +00:00
|
|
|
</li>
|
|
|
|
{{ end }}
|