Verbeteren breadcrumb

This commit is contained in:
Michael Boelen 2023-05-15 15:57:51 +02:00
parent 7be5c15937
commit e23f8d845d
3 changed files with 6 additions and 3 deletions

View file

@ -11,6 +11,6 @@
}
.breadcrumb li + li:before {
content: ">";
padding: 0.3rem;
content: "»";
padding: 0.1rem;
}

View file

@ -1,8 +1,9 @@
{{ if not .IsHome }}
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
{{ range $index,$element := .Ancestors.Reverse }}
{{ if eq $index 0 }}
<li><a href="{{ .Permalink }}">🏠</a></li>
<li><img src="/afbeeldingen/iconen/home.svg" height="{{ .Site.Params.smallIconSize }}" width="{{ .Site.Params.smallIconSize }}" alt="Terug naar hoofdpagina">&nbsp;<a href="{{ .Permalink }}">Hoofdpagina</a></li>
{{ else }}
<li>
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
@ -14,3 +15,4 @@
</li>
</ol>
</nav>
{{ end }}