From 685c06ce2e7c559b4e2cc544e300c1262c739b1c Mon Sep 17 00:00:00 2001
From: K Gopal Krishna <30401343+kayg04@users.noreply.github.com>
Date: Fri, 04 Apr 2025 17:36:29 +0000
Subject: [PATCH] fix(RecentNotes): Prevent folder pages from always appearing first (closes #1901) (#1904)

---
 docs/layout-components.md |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/docs/layout-components.md b/docs/layout-components.md
index 339ace8..09c2d76 100644
--- a/docs/layout-components.md
+++ b/docs/layout-components.md
@@ -81,4 +81,13 @@
 })
 ```
 
-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.

--
Gitblit v1.10.0