This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website/themes/nluug/layouts/partials/breadcrumb.html

19 lines
642 B
HTML
Raw Permalink Normal View History

2023-05-15 15:57:51 +02:00
{{ if not .IsHome }}
<nav aria-label="Breadcrumbs">
2023-05-15 15:26:10 +02:00
<ol class="breadcrumb">
{{ range $index,$element := .Ancestors.Reverse }}
{{ if eq $index 0 }}
<li><img src="/afbeeldingen/iconen/home.svg" height="{{ .Site.Params.smallIconSize }}" width="{{ .Site.Params.smallIconSize }}" alt="{{ i18n "back_to_home" }}">&nbsp;<a href="{{ .Permalink }}">{{ .Title }}</a></li>
2023-05-15 15:26:10 +02:00
{{ else }}
<li>
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
</li>
{{ end }}
{{ end }}
<li class="active">
<a aria-current="page" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
2023-05-15 15:26:10 +02:00
</li>
</ol>
</nav>
2023-05-15 15:57:51 +02:00
{{ end }}