Verbeteren breadcrumb
This commit is contained in:
parent
7be5c15937
commit
e23f8d845d
3 changed files with 6 additions and 3 deletions
|
@ -11,6 +11,6 @@
|
|||
}
|
||||
|
||||
.breadcrumb li + li:before {
|
||||
content: ">";
|
||||
padding: 0.3rem;
|
||||
content: "»";
|
||||
padding: 0.1rem;
|
||||
}
|
||||
|
|
|
@ -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"> <a href="{{ .Permalink }}">Hoofdpagina</a></li>
|
||||
{{ else }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
||||
|
@ -14,3 +15,4 @@
|
|||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue