File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ Component.Breadcrumbs({
1919 spacerSymbol: " ❯" , // symbol between crumbs
2020 rootName: " Home" , // name of first/root element
2121 resolveFrontmatterTitle: true , // whether to resolve folder names through frontmatter titles
22- hideOnRoot: true , // whether to hide breadcrumbs on root `index.md` page
2322 showCurrentPage: true , // whether to display the current page in the breadcrumbs
2423})
2524```
Original file line number Diff line number Diff line change @@ -81,4 +81,13 @@ Component.ConditionalRender({
8181})
8282` ` `
8383
84- This example would only render the Search component when the page is not in fullpage mode.
84+ The example above would only render the Search component when the page is not in fullpage mode.
85+
86+ ` ` ` typescript
87+ Component .ConditionalRender ({
88+ component: Component .Breadcrumbs (),
89+ condition: (page ) => page .fileData .slug !== " index" ,
90+ })
91+ ` ` `
92+
93+ The example above would hide breadcrumbs on the root ` index .md ` page.
You can’t perform that action at this time.
0 commit comments