mirror of
https://github.com/ZetaKebab/quartz.git
synced 2025-06-22 00:34:37 +00:00
Updating breadcrumbs docs on ConditionalRender (#1871)
This commit is contained in:
@ -81,4 +81,13 @@ Component.ConditionalRender({
|
||||
})
|
||||
```
|
||||
|
||||
This example would only render the Search component when the page is not in fullpage mode.
|
||||
The example above would only render the Search component when the page is not in fullpage mode.
|
||||
|
||||
```typescript
|
||||
Component.ConditionalRender({
|
||||
component: Component.Breadcrumbs(),
|
||||
condition: (page) => page.fileData.slug !== "index",
|
||||
})
|
||||
```
|
||||
|
||||
The example above would hide breadcrumbs on the root `index.md` page.
|
||||
|
Reference in New Issue
Block a user