2024-03-27 12:24:18 +01:00
|
|
|
{{ $context := .Context }} {{ $class := .Class }} {{ $base :=
|
|
|
|
site.Home.Permalink }}
|
2024-03-26 16:28:28 +01:00
|
|
|
|
|
|
|
<ul class="{{ $class }} inline-flex space-x-1 capitalize">
|
|
|
|
<li>
|
|
|
|
<a class="text-primary dark:text-darkmode-primary" href="{{ $base }}">
|
|
|
|
{{ i18n "home" | default "Home" }}
|
|
|
|
</a>
|
|
|
|
<span class="inlin-block mr-1">/</span>
|
|
|
|
</li>
|
2024-03-27 12:24:18 +01:00
|
|
|
{{ range $i, $e:= $context.Ancestors.Reverse }} {{ if and (not .IsHome) (ne
|
|
|
|
.Title "Pages") }}
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
class="text-primary dark:text-darkmode-primary"
|
|
|
|
href="{{ .RelPermalink }}"
|
|
|
|
>
|
|
|
|
{{ i18n (printf "%s" (lower .Title)) | default .Title }}
|
|
|
|
</a>
|
|
|
|
<span class="inlin-block mr-1">/</span>
|
|
|
|
</li>
|
|
|
|
{{ end }} {{ end }}
|
2024-03-26 16:28:28 +01:00
|
|
|
<li>
|
|
|
|
<span class="text-primary dark:text-darkmode-primary">
|
|
|
|
{{ i18n (printf "%s" (lower $context.Title)) | default $context.Title }}
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|