Add breadcrumb.html

This commit is contained in:
Will Faught
2023-03-19 21:59:53 -07:00
parent 0521551205
commit 756be6f15c
4 changed files with 19 additions and 0 deletions

View 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 }}

View File

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