chill_hugoplate/themes/hugoplate/layouts/partials/components/breadcrumb.html

33 lines
861 B
HTML
Raw Normal View History

2023-06-04 07:29:21 +00:00
{{ $context := .Context }}
{{ $class := .Class }}
{{ $base := site.BaseURL }}
<ul class="{{ $class }} inline-flex space-x-1">
2023-07-06 06:28:18 +00:00
<li>
2023-06-04 07:29:21 +00:00
<a
class="text-primary dark:text-darkmode-primary"
href="{{ $base | relLangURL }}">
{{ i18n "home" | default "Home" }}
</a>
<span class="inlin-block mr-1"><i class="fa fa-arrow-right"></i></span>
2023-06-04 05:07:38 +00:00
</li>
2023-07-06 06:28:18 +00:00
{{ range $i, $e:= $context.Ancestors.Reverse }}
2023-07-22 09:45:51 +00:00
{{ if and (not .IsHome) (ne .Title "Pages") }}
2023-07-06 06:36:12 +00:00
<li>
<a
class="text-primary dark:text-darkmode-primary"
href="{{ .RelPermalink }}">
{{ .Title }}
</a>
<span class="inlin-block mr-1"><i class="fa fa-arrow-right"></i></span>
2023-07-06 06:36:12 +00:00
</li>
{{ end }}
2023-06-04 05:07:38 +00:00
{{ end }}
2023-07-06 06:28:18 +00:00
<li>
<span class="text-primary dark:text-darkmode-primary">
{{ $context.Title }}
</span>
</li>
2023-06-04 05:07:38 +00:00
</ul>