From c7188632b728bff9caf3bb0b9746e662f2eddee1 Mon Sep 17 00:00:00 2001 From: Sangeeth Sudheer Date: Fri, 7 Mar 2025 10:19:49 +0530 Subject: Add breadcrumbs config to hide current page and change home text Changes `breadcrumbs` config into an object to add customizations such as hiding current page and changing the text of the home crumb. By default, Typo will now show breadcrumbs. If breadcrumbs are enabled, the current default of showing the current page crumb is preserved. BREAKING CHANGE: `breadcrumbs` is now an object so existing `breadcrumbs = ` line in config needs to be changed. --- layouts/partials/breadcrumbs.html | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index 5c4fb62..df67cb8 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -1,9 +1,23 @@ -{{ if .Site.Params.breadcrumbs }} +{{- if .Site.Params.breadcrumbs.enabled -}} +{{- $breadcrumbs := .Site.Params.breadcrumbs -}} -{{ end }} \ No newline at end of file +{{- end -}} \ No newline at end of file -- cgit v1.2.3