Breadcrumb en kanarie-functie
This commit is contained in:
parent
6e9a89786e
commit
35d03b27ac
5 changed files with 39 additions and 2 deletions
16
themes/nluug/layouts/partials/breadcrumb.html
Normal file
16
themes/nluug/layouts/partials/breadcrumb.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
{{ range $index,$element := .Ancestors.Reverse }}
|
||||
{{ if eq $index 0 }}
|
||||
<li><a href="{{ .Permalink }}">🏠</a></li>
|
||||
{{ else }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<li class="active">
|
||||
<a aria-current="page" href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
Loading…
Add table
Add a link
Reference in a new issue