Add breadcrumb.html

master
Will Faught 2 years ago
parent 0521551205
commit 756be6f15c

@ -1,3 +1,6 @@
paige_breadcrumb:
other: Brotkrümel
paige_collections:
other: Sammlungen

@ -1,3 +1,6 @@
paige_breadcrumb:
other: Breadcrumb
paige_collections:
other: Collections

@ -0,0 +1,11 @@
{{ $page := . }}
{{ with .Ancestors }}
<nav aria-label="{{ i18n `paige_breadcrumb` }}" class="d-flex justify-content-center mt-3" id="paige-breadcrumb">
<ol class="breadcrumb">
{{ range .Reverse }}
<li class="breadcrumb-item"><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ol>
</nav>
{{ end }}

@ -14,6 +14,8 @@
{{ partial "paige/menu.html" $page }}
{{ end }}
{{ partial "paige/breadcrumb.html" . }}
{{ if $last }}
{{ partial "paige/header-last.html" $page }}
{{ end }}

Loading…
Cancel
Save