Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
695 B
HTML
Raw Permalink Normal View History

2019-08-23 14:22:47 -07:00
<!-- Based on https://gohugo.io/content-management/sections/#example-breadcrumb-navigation -->
2023-06-05 19:06:46 -07:00
<ol class="docs-breadcrumb">
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
</ol>
2019-08-23 14:22:47 -07:00
{{ define "breadcrumbnav" }}
<!-- Don't include the website home page in the breadcrumb. -->
{{ if and .p1.Parent (ne .p1.Parent .p1.Site.Home) }}
{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2) }}
{{ end }}
{{ if not (isset .p1.Params "redirect_to") }}
2023-05-19 19:55:32 -07:00
<li {{ if eq .p1 .p2 }}class="active"{{ end }}>
2023-06-05 19:06:46 -07:00
<a data-track="breadcrumb" href="{{ .p1.RelPermalink }}">
{{ .p1.LinkTitle }}
</a>
2023-05-19 19:55:32 -07:00
</li>
2019-08-23 14:22:47 -07:00
{{ end }}
{{ end }}