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. --- wiki/features/other-parameters.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'wiki/features/other-parameters.md') diff --git a/wiki/features/other-parameters.md b/wiki/features/other-parameters.md index 136698e..a6e370d 100644 --- a/wiki/features/other-parameters.md +++ b/wiki/features/other-parameters.md @@ -25,11 +25,21 @@ description = "Your description" Show breadcrumbs on pages. +Example: + ```toml -[params] -breadcrumbs = true +[params.breadcrumbs] +enabled = true +showCurrentPage = true +home = "~" ``` +Set `enabled` to `false` if you want to hide breadcrumbs. By default, breadcrumbs are shown. + +Set `showCurrentPage` to `false` to hide the last crumb, i.e, the current page. + +`home` when set with a non-empty string, uses the latter as the first crumb instead of the string "Home". + ## Comments Enable comments on your posts using [Giscus](https://giscus.app/). -- cgit v1.2.3