From aaa5c8e8e40be33aec74c1cf0073ac081cb918fc Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 24 Mar 2025 00:34:14 +0000
Subject: [PATCH] feat: conditional render component
---
docs/features/backlinks.md | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/docs/features/backlinks.md b/docs/features/backlinks.md
index f558f4a..6862720 100644
--- a/docs/features/backlinks.md
+++ b/docs/features/backlinks.md
@@ -9,6 +9,7 @@
## Customization
- Removing backlinks: delete all usages of `Component.Backlinks()` from `quartz.layout.ts`.
+- Hide when empty: hide `Backlinks` if given page doesn't contain any backlinks (default to `true`). To disable this, use `Component.Backlinks({ hideWhenEmpty: false })`.
- Component: `quartz/components/Backlinks.tsx`
- Style: `quartz/components/styles/backlinks.scss`
- Script: `quartz/components/scripts/search.inline.ts`
--
Gitblit v1.10.0