No description
Find a file
saberzero1 dbcda79720
feat: exclude unlisted pages from backlink sources
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.
2026-04-11 13:49:59 +02:00
.github/workflows ci: add dist externals verification step 2026-03-17 19:41:47 +01:00
dist feat: exclude unlisted pages from backlink sources 2026-04-11 13:49:59 +02:00
src feat: exclude unlisted pages from backlink sources 2026-04-11 13:49:59 +02:00
test feat: exclude unlisted pages from backlink sources 2026-04-11 13:49:59 +02:00
types fix: centralize type declarations and add missing peer dependency 2026-03-16 18:54:39 +01:00
.eslintrc.json fix: centralize type declarations and add missing peer dependency 2026-03-16 18:54:39 +01:00
.gitignore chore: commit dist/ and remove prepare script 2026-03-14 21:56:19 +01:00
.prettierignore fix: centralize type declarations and add missing peer dependency 2026-03-16 18:54:39 +01:00
.prettierrc Initial commit 2026-02-09 22:59:09 +01:00
CHANGELOG.md feat: exclude unlisted pages from backlink sources 2026-04-11 13:49:59 +02:00
LICENSE Initial commit 2026-02-09 22:59:09 +01:00
package-lock.json deps: update @quartz-community/types and @quartz-community/utils 2026-04-03 16:19:56 +02:00
package.json fix: centralize type declarations and add missing peer dependency 2026-03-16 18:54:39 +01:00
README.md docs: update README for v5 unified config system 2026-02-25 16:07:11 +01:00
tsconfig.build.json fix: use separate tsconfig for DTS build to avoid vitest dependency 2026-03-22 13:12:01 +01:00
tsconfig.json fix: centralize type declarations and add missing peer dependency 2026-03-16 18:54:39 +01:00
tsup.config.ts fix: move tsconfig from dts object to top-level option 2026-03-22 13:25:12 +01:00
vitest.config.ts Initial commit 2026-02-09 22:59:09 +01:00

@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