🚸 Add breadcrumbs section name fallback

This commit is contained in:
James Panther
2022-01-27 11:39:36 +11:00
parent add3f764f7
commit 734fa6e827
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -11,7 +11,11 @@
<a
class="hover:underline hover:decoration-neutral-300 dark:underline-neutral-600"
href="{{ .p1.RelPermalink }}"
>{{ .p1.Title }}</a
>{{ if .p1.Title }}
{{- .p1.Title -}}
{{ else }}
{{- .p1.Section -}}
{{ end }}</a
><span class="px-1 text-primary-500">/</span>
</li>
{{ end }}