blob: 8aaea978107c5eed6967f5712e07c4aa4ce075c9 [file] [log] [blame]
{{define "breadcrumbnav"}}
{{- if .p1.Parent}}
{{- template "breadcrumbnav" (dict "p1" (page .p1.Parent) "p2" .p2 )}}
{{- end}}
{{- if not (eq .p1.title "go.dev")}}
<li class="BreadcrumbNav-li {{if eq .p1.Path .p2.Path}}active{{end}}">
<a class="BreadcrumbNav-link" href="{{.p1.Path}}">
{{or .p1.company .p1.title}}
</a>
</li>
{{- end}}
{{- end}}
{{define "breadcrumbs"}}
<div class="BreadcrumbNav">
<ol class="BreadcrumbNav-inner">
{{template "breadcrumbnav" (dict "p1" . "p2" .)}}
</ol>
</div>
{{- end}}