🚸 Add breadcrumbs section name fallback

pull/100/head
James Panther 2022-01-27 11:39:36 +11:00
parent add3f764f7
commit 734fa6e827
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 6 additions and 1 deletions

View File

@ -31,6 +31,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Upgrade to Tailwind v3.0.15
- Inline Javascript moved to external files
- Improved JSON-LD structured data
- Breadcrumbs now fallback to section name when `title` is not provided
- Minor style and layout improvements
## [1.6.4] - 2022-01-24

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 }}