12 lines
355 B
HTML
12 lines
355 B
HTML
<ol class="nav navbar-nav breadcrumb">
|
|
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
|
</ol>
|
|
{{ define "breadcrumbnav" }}
|
|
{{ if .p1.Parent }}
|
|
{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
|
|
{{ end }}
|
|
{{ if (and .p1.IsSection (not .p1.Parent.IsHome)) }}
|
|
<li><a href="{{ .p1.Permalink }}">{{ .p1.Title }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|