···6060```typescript
6161Component.DesktopOnly(Component.TableOfContents())
6262```
6363+6464+## `ConditionalRender` Component
6565+6666+The `ConditionalRender` component is a wrapper that conditionally renders its child component based on a provided condition function. This is useful for creating dynamic layouts where components should only appear under certain conditions.
6767+6868+```typescript
6969+type ConditionalRenderConfig = {
7070+ component: QuartzComponent
7171+ condition: (props: QuartzComponentProps) => boolean
7272+}
7373+```
7474+7575+### Example Usage
7676+7777+```typescript
7878+Component.ConditionalRender({
7979+ component: Component.Search(),
8080+ condition: (props) => props.displayClass !== "fullpage",
8181+})
8282+```
8383+8484+This example would only render the Search component when the page is not in fullpage mode.
+4-1
quartz.layout.ts
···1717// components for pages that display a single page (e.g. a single note)
1818export const defaultContentPageLayout: PageLayout = {
1919 beforeBody: [
2020- Component.Breadcrumbs(),
2020+ Component.ConditionalRender({
2121+ component: Component.Breadcrumbs(),
2222+ condition: (page) => page.fileData.slug !== "index",
2323+ }),
2124 Component.ArticleTitle(),
2225 Component.ContentMeta(),
2326 Component.TagList(),
-1
quartz/build.ts
···2121import { randomIdNonSecure } from "./util/random"
2222import { ChangeEvent } from "./plugins/types"
2323import { minimatch } from "minimatch"
2424-import { FileTrieNode } from "./util/fileTrie"
25242625type ContentMap = Map<
2726 FilePath,