mirror of
https://github.com/quartz-community/backlinks.git
synced 2026-07-22 02:50:27 +00:00
No description
Respect the file.data.unlisted convention. Pages marked unlisted are no longer shown as backlink sources on other pages. The backlinks list on an unlisted page itself is still rendered normally -- users who reached the page by direct URL should still see its incoming references. Extracts the filter predicate into a named selectBacklinkSources() helper and exports it alongside a BacklinkCandidate type so consumers and tests can exercise the filter logic directly. Adds 3 unit tests covering unlisted exclusion, explicit unlisted: false passthrough, and basic source selection. |
||
|---|---|---|
| .github/workflows | ||
| dist | ||
| src | ||
| test | ||
| types | ||
| .eslintrc.json | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsup.config.ts | ||
| vitest.config.ts | ||
@quartz-community/backlinks
Displays a list of pages that link back to the current page.
Installation
npx quartz plugin add github:quartz-community/backlinks
Usage
plugins:
- source: github:quartz-community/backlinks
enabled: true
layout:
position: right
priority: 30
For advanced use cases, you can override in TypeScript:
import * as ExternalPlugin from "./.quartz/plugins";
ExternalPlugin.Backlinks({
hideWhenEmpty: true,
});
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
hideWhenEmpty |
boolean |
true |
Whether to hide the backlinks section when no pages link back to the current page. |
Documentation
See the Quartz documentation for more information.
License
MIT