Add breadcrumb.html
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
paige_breadcrumb:
|
||||||
|
other: Brotkrümel
|
||||||
|
|
||||||
paige_collections:
|
paige_collections:
|
||||||
other: Sammlungen
|
other: Sammlungen
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
paige_breadcrumb:
|
||||||
|
other: Breadcrumb
|
||||||
|
|
||||||
paige_collections:
|
paige_collections:
|
||||||
other: Collections
|
other: Collections
|
||||||
|
|
||||||
|
11
layouts/partials/paige/breadcrumb.html
Normal file
11
layouts/partials/paige/breadcrumb.html
Normal file
@@ -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 }}
|
{{ partial "paige/menu.html" $page }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ partial "paige/breadcrumb.html" . }}
|
||||||
|
|
||||||
{{ if $last }}
|
{{ if $last }}
|
||||||
{{ partial "paige/header-last.html" $page }}
|
{{ partial "paige/header-last.html" $page }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user