Commit graph

40 commits

Author SHA1 Message Date
saberzero1
cae94b2bcf
fix: use the configured default date 2026-05-26 22:20:08 +02:00
saberzero1
92538d7346
feat: add hideTagPages and hideFolderPages options
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.
2026-04-16 19:13:16 +02:00
saberzero1
29815e206b
refactor: reuse upstream types instead of redeclaring them locally
Import QuartzComponentConstructor and GlobalConfiguration from
@quartz-community/types rather than redeclaring them. Simplify
RecentNotesPluginData to an intersection with Record<string, unknown>
since the redundant fields (slug, filePath, dates, frontmatter) are
already declared on QuartzPluginData.

The plugin genuinely narrows GlobalConfiguration (it assumes locale
and defaultDateType are resolved), so a ResolvedGlobalConfiguration
type alias is kept for that assertion. It is a type intersection
(not an interface extension) to avoid the DTS emission issue that
affected PageList.tsx historically.
2026-04-16 15:22:53 +02:00
saberzero1
2e9753c996
feat: exclude unlisted pages from recent notes
Respect the file.data.unlisted convention. Pages marked unlisted are
filtered out of the recent notes list before any user-supplied opts.filter
runs, so they cannot be accidentally surfaced by a permissive custom
filter.

Extracts the filter into a named filterListedPages() helper and exports
it for reuse and testing. Adds 3 unit tests covering unlisted exclusion,
passthrough when nothing is unlisted, and empty-input handling.
2026-04-11 13:50:16 +02:00
saberzero1
73fa0994a6
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:46 +02:00
saberzero1
f3ef78fa62
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:46 +02:00
saberzero1
5fb40dede6
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:46 +02:00
saberzero1
e25d0339ab
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:46 +02:00
saberzero1
564ab281d4
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:41 +02:00
saberzero1
af13feb918
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:41 +02:00
saberzero1
c6a4d3f1de
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:41 +02:00
saberzero1
9f01602a8d
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:41 +02:00
saberzero1
63fdc6e3dd
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:41 +02:00
saberzero1
34bb9cdee6
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:35 +02:00
saberzero1
b8c379e9e8
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:35 +02:00
saberzero1
ec3345aa27
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:35 +02:00
saberzero1
2300fc3888
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:35 +02:00
saberzero1
c921f29562
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:58:35 +02:00
saberzero1
fbd7b4a4cc
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:59 +02:00
saberzero1
4f1b942bcd
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:59 +02:00
saberzero1
ee0342eace
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:59 +02:00
saberzero1
ed25600351
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:59 +02:00
saberzero1
6c0a44ed5c
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:59 +02:00
saberzero1
a44f9fc89b
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:54 +02:00
saberzero1
4de24ef005
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:54 +02:00
saberzero1
ff117f5e57
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:54 +02:00
saberzero1
357122e7ea
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:54 +02:00
saberzero1
f47b431c63
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:54 +02:00
saberzero1
cf00731652
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:48 +02:00
saberzero1
473dedcd9f
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:48 +02:00
saberzero1
676b583bb2
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:48 +02:00
saberzero1
10c34524df
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:48 +02:00
saberzero1
9924424f26
i18n: add translations for 30 locales from Quartz v4 2026-04-04 01:49:48 +02:00
saberzero1
68f4748cd3
refactor: use shared classNames from @quartz-community/utils 2026-04-03 19:12:30 +02:00
saberzero1
25455b5ef9
fix: guard against undefined getDate in RecentNotes 2026-04-03 16:01:38 +02:00
saberzero1
96b256f2f7
refactor: use shared getDate, byDateAndAlphabetical, ValidDateType from community packages 2026-04-03 15:44:30 +02:00
saberzero1
4ec7479cdb
refactor: use shared formatDate and SortFn from community packages 2026-04-03 15:08:05 +02:00
saberzero1
a39aecae5f
fix: centralize type declarations and add missing peer dependency
- Update types/globals.d.ts with centralized type declarations
- Add hast-util-to-jsx-runtime as devDependency (peer dep from @quartz-community/utils)
- Add .prettierignore, update .eslintrc.json with triple-slash-reference override
- Remove duplicate scripts.d.ts/styles.d.ts
2026-03-16 18:54:39 +01:00
saberzero1
77f65dd8da
feat(plugins): recent-notes as community plugin
Implement recent notes component with configurable sorting, date
formatting, and tag filtering. Uses direct imports from
@quartz-community/types instead of ambient declaration files.
2026-02-13 13:19:00 +01:00
Emile Bangma
0127f44066
Initial commit 2026-02-13 12:18:48 +01:00