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>
|
|
@ -1,3 +1,4 @@
|
|||
{{ $styles := resources.Get "scss/styles.scss" | toCSS (dict "outputStyle" "compressed") | minify }}
|
||||
{{ $styles_breadcrumb := resources.Get "scss/styles_breadcrumb.scss" | toCSS (dict "outputStyle" "compressed") | minify }}
|
||||
{{ $styles_extra := resources.Get "scss/_extra.scss" | toCSS (dict "outputStyle" "compressed") | minify }}
|
||||
<style>{{ $styles.Content | safeCSS }} {{ $styles_extra.Content | safeCSS }}</style>
|
||||
<style>{{ $styles.Content | safeCSS }} {{ $styles_breadcrumb.Content | safeCSS }} {{ $styles_extra.Content | safeCSS }}</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue