This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity.eu/layouts/partials/components/breadcrumb.html
Valentin Gagarin 72f70ec475 Add 'website/' from commit 'd208ee83f80467e25c662b4680ed2d6161d88d9e'
git-subtree-dir: website
git-subtree-mainline: 83b1c9ac3b58871df715c5993a29d658439fc772
git-subtree-split: d208ee83f80467e25c662b4680ed2d6161d88d9e
2024-10-07 11:53:11 +02:00

26 lines
754 B
HTML

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