From 734fa6e827c17aff90875f278aec168c2aa40ca8 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Thu, 27 Jan 2022 11:39:36 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Add=20breadcrumbs=20section=20na?= =?UTF-8?q?me=20fallback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + layouts/partials/breadcrumbs.html | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ac12ad2..8b63b680 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index 38beb2f7..7c304e00 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -11,7 +11,11 @@ {{ .p1.Title }}{{ if .p1.Title }} + {{- .p1.Title -}} + {{ else }} + {{- .p1.Section -}} + {{ end }}/ {{ end }}