style: dds Breadcrumbs

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2023-09-28 09:48:50 +02:00
parent 0905e312e3
commit 6e3d110e5b
1 changed files with 2 additions and 6 deletions

View File

@ -2,12 +2,8 @@
{{ $ctx := . }}
<nav class="py-2 gap-2 flex items-center overflow-hidden">
<a class="link" href="{{ site.BaseURL }}"
><span class="material-symbols-rounded">home</span></a
>
<nav class="py-4 gap-4 flex items-center overflow-hidden text-gray-light dark:text-gray-dark">
{{ with ($scratch.GetSortedMapValues "sections") }}
<span>/</span>
{{ range $i, $e := . }}
{{- if $i -}}
<span>/</span>
@ -17,6 +13,6 @@
{{- end -}}
{{- with $scratch.Get "lastsection" -}}
<span>/</span>
<a href="{{ .path }}" class="link whitespace-nowrap">{{ markdownify .title }}</a>
<span>{{ markdownify .title }}</span>
{{- end -}}
</nav>