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({
19
19
spacerSymbol: " ❯" , // symbol between crumbs
20
20
rootName: " Home" , // name of first/root element
21
21
resolveFrontmatterTitle: true , // whether to resolve folder names through frontmatter titles
22
- hideOnRoot: true , // whether to hide breadcrumbs on root `index.md` page
23
22
showCurrentPage: true , // whether to display the current page in the breadcrumbs
24
23
})
25
24
```
Original file line number Diff line number Diff line change @@ -81,4 +81,13 @@ Component.ConditionalRender({
81
81
})
82
82
` ` `
83
83
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