2023-12-26 00:56:32 +00:00
|
|
|
<ol class="text-sm text-neutral-500 print:hidden dark:text-neutral-400">
|
2021-08-18 00:08:06 +00:00
|
|
|
{{ template "crumb" (dict "p1" . "p2" .) }}
|
|
|
|
</ol>
|
|
|
|
{{ define "crumb" }}
|
|
|
|
{{ if .p1.Parent }}
|
|
|
|
{{ template "crumb" (dict "p1" .p1.Parent "p2" .p2 ) }}
|
|
|
|
{{ else if not .p1.IsHome }}
|
|
|
|
{{ template "crumb" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
|
|
|
|
{{ end }}
|
2023-12-26 00:56:32 +00:00
|
|
|
<li class="{{ if or (eq .p1 .p2) (.p1.IsHome) }}hidden{{ end }} inline">
|
2021-08-20 03:56:45 +00:00
|
|
|
<a
|
2023-12-26 00:56:32 +00:00
|
|
|
class="dark:underline-neutral-600 decoration-neutral-300 hover:underline"
|
2021-08-25 23:44:41 +00:00
|
|
|
href="{{ .p1.RelPermalink }}"
|
2022-01-27 00:39:36 +00:00
|
|
|
>{{ if .p1.Title }}
|
|
|
|
{{- .p1.Title -}}
|
|
|
|
{{ else }}
|
|
|
|
{{- .p1.Section -}}
|
|
|
|
{{ end }}</a
|
2021-08-18 02:54:18 +00:00
|
|
|
><span class="px-1 text-primary-500">/</span>
|
2021-08-18 00:08:06 +00:00
|
|
|
</li>
|
|
|
|
{{ end }}
|