diff options
author | Sangeeth Sudheer <git@sangeeth.dev> | 2025-03-07 10:19:49 +0530 |
---|---|---|
committer | Sangeeth Sudheer <git@sangeeth.dev> | 2025-03-09 01:50:55 +0530 |
commit | c7188632b728bff9caf3bb0b9746e662f2eddee1 (patch) | |
tree | e8df4a97d88a1b2ddae7e4e133ac57dbd0761cf1 /wiki/features | |
parent | da22bc00a46bf3d0539bae77da9d278bc1131e02 (diff) |
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 = <true/false>` line in config needs to be changed.
Diffstat (limited to 'wiki/features')
-rw-r--r-- | wiki/features/other-parameters.md | 14 |
1 files changed, 12 insertions, 2 deletions
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/). |