Add breadcrumb.html
This commit is contained in:
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 }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "paige/breadcrumb.html" . }}
|
||||
|
||||
{{ if $last }}
|
||||
{{ partial "paige/header-last.html" $page }}
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user