30 lines
877 B
HTML
30 lines
877 B
HTML
{{ $context := .Context }}
|
|
{{ $class := .Class }}
|
|
{{ $base := site.Home.Permalink }}
|
|
|
|
|
|
<ul class="{{ $class }} inline-flex space-x-1 capitalize">
|
|
<li>
|
|
<a class="text-primary dark:text-darkmode-primary" href="{{ $base }}">
|
|
{{ T "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 dark:text-darkmode-primary"
|
|
href="{{ .RelPermalink }}">
|
|
{{ T (printf "%s" (lower .Title)) | default .Title }}
|
|
</a>
|
|
<span class="inlin-block mr-1">/</span>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
<li>
|
|
<span class="text-primary dark:text-darkmode-primary">
|
|
{{ T (printf "%s" (lower $context.Title)) | default $context.Title }}
|
|
</span>
|
|
</li>
|
|
</ul>
|