Fix breadcrumbs to be hideable

This commit is contained in:
Will Faught
2023-03-22 16:45:52 -07:00
parent 095b6ba431
commit d06980a796

View File

@@ -1,11 +1,13 @@
{{ $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 | markdownify}}</a></li>
{{ end }}
</ol>
<nav aria-label="{{ i18n `paige_breadcrumb` }}" class="mt-3" id="paige-breadcrumb">
<div class="d-flex justify-content-center">
<ol class="breadcrumb">
{{ range .Reverse }}
<li class="breadcrumb-item"><a href="{{ .RelPermalink }}">{{ .Title | markdownify}}</a></li>
{{ end }}
</ol>
</div>
</nav>
{{ end }}