Both default to false so existing behavior is preserved. When enabled, they exclude generated tag index pages (slugs under the 'tags/' prefix) and folder index pages (slugs matching Quartz's folder-path convention, delegated to isFolderPath from @quartz-community/utils) from the recent notes list. The new filters run before any user-supplied opts.filter, mirroring the existing unlisted filter. Exports isTagPageSlug and isFolderPageSlug helpers so they can be composed into custom filter functions, with unit tests for both.
1.1 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
[Unreleased]
Added
-
Respect the
file.data.unlistedconvention. Pages markedunlistedare never shown in the recent notes list. The unlisted filter runs before any user-suppliedopts.filter. -
Exported
filterListedPageshelper for reuse and testing. -
Unit tests for
filterListedPages. -
New
hideTagPagesoption (defaultfalse) that excludes tag index pages (slugs under thetags/prefix) from the recent notes list. The filter runs before any user-suppliedopts.filter. -
New
hideFolderPagesoption (defaultfalse) that excludes folder index pages (slugs matching Quartz's folder-path convention) from the recent notes list. The filter runs before any user-suppliedopts.filter. -
Exported
isTagPageSlugandisFolderPageSlughelpers for reuse and testing, plus unit tests for both. -
Initial Quartz community plugin template.