hugo-theme-termlite/layouts/partials/page_breadcrumb.html
Eryn Wells d1154de459 Add a page navigation breadcrumb
This thing looks like a path. It lists the hierarchy of pages from the home page.
2024-07-23 08:53:34 -07:00

12 lines
351 B
HTML

<nav class="nav-breadcrumb">
<ol>
{{ range .Ancestors.Reverse }}
{{- $title := .LinkTitle -}}
{{- if .IsHome -}}
<li class="nav-breadcrumb__home"><a href="{{ .Permalink }}">{{ i18n "home" }}</a></li>
{{ else }}
<li><a href="{{ .Permalink }}">{{ $title }}</a></li>
{{- end -}}
{{ end }}
</ol>
</nav>