quartz/docs/features/backlinks.md
Anton Bulakh 528ea07b18
feat(backlinks): Add an option to hide backlinks component when empty
I moved backlinks to `afterBody` and felt it looks better when the
component is fully hidden whenever there's no backlinks, so I added
that as an option.
2024-12-25 04:59:08 +02:00

16 lines
616 B
Markdown

---
title: Backlinks
tags:
- component
---
A backlink for a note is a link from another note to that note. Links in the backlink pane also feature rich [[popover previews]] if you have that feature enabled.
## Customization
- Removing backlinks: delete all usages of `Component.Backlinks()` from `quartz.layout.ts`.
- Hide when empty: use `Component.Backlinks({ hideWhenEmpty: true })` to hide the backlinks component completely when there are no backlinks.
- Component: `quartz/components/Backlinks.tsx`
- Style: `quartz/components/styles/backlinks.scss`
- Script: `quartz/components/scripts/search.inline.ts`