From 00590db6bbc0743775238176a01124a654be9887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Mon, 17 Feb 2025 19:54:51 +0100 Subject: [PATCH] breadcrumbs: default to site title for home page #1027 --- layouts/partials/breadcrumbs.html | 3 ++- layouts/partials/version.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index 788f6c2a70..8a2f901a7f 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -11,9 +11,10 @@ {{- $breadcrumb := slice }} {{- range seq $depth }} {{- if $to }} + {{- $title := partial "title.gotmpl" (dict "page" $to "linkTitle" true) }} {{- if partial "_relearn/pageIsSpecial.gotmpl" $to }} {{- break }} - {{- else if or $to.Title (eq $to.Kind "taxonomy") (eq $to.Kind "term") }} + {{- else if or $title (eq $to.Kind "taxonomy") (eq $to.Kind "term") }} {{- $breadcrumb = $breadcrumb | append $to }} {{- end }} {{- else }} diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index 807adc97e7..e01796060c 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -7.3.2+d8a1e68dd4019f72097d69448711c426309a2138 \ No newline at end of file +7.3.2+648b0d249b63bf77788692ad753f8d4a00e14537 \ No newline at end of file