mirror of
https://github.com/jackyzha0/quartz
synced 2026-11-27 22:14:40 +01:00
Audit of the docs against 5.1 (release notes, core source, plugins) and fixes: - getting-started: 5.0 → 5.1 upgrade section (plugin doctor --fix, line breaks, heading ids, Bases 1.2, permalinks, frontmatter, CI, GFM before OFM), New in 5.1, git pull upstream v5, no redundant install steps - advanced: new plugin manifest reference (dependencies, defaultOrder, configSchema/optionSchema, deprecated, components…), making plugins (BuildCtx, emitters, page types, peer dependencies, imports), creating components (./components subpath, script loading, render/prefetch contract), capabilities, architecture, paths - cli: --directory is the content folder; build/sync flags and behaviour (sync force-pushes); plugin add from npm - configuration, layout, features and plugin pages: nested colors, built-ins, wikilinks/heading anchors, Obsidian compatibility (OFM 2.0), correct defaults and options, Bases 1.2, stacked pages, og-image v5 API; new pages for Excalidraw, TTRPG maps and themes
2.5 KiB
2.5 KiB
title, description, tags, image, repository, enabled, required
| title | description | tags | image | repository | enabled | required | |
|---|---|---|---|---|---|---|---|
| RecentNotes | Displays a list of recently modified notes. |
|
[quartz-community/recent-notes](https://github.com/quartz-community/recent-notes) | false | false |
Shows the most recent notes, newest first, by each page's default date (defaultDateType of CreatedModifiedDate: modified in the default config).
Note
For information on how to add, remove or configure plugins, see the configuration#Plugins page.
See recent notes for detailed usage information.
Configuration
This plugin accepts the following configuration options:
title: The title of the recent notes section. Defaults to the localized "Recent Notes" (see i18n).limit: The maximum number of recent notes to display. Defaults to3.showTags: Whether to display the tags for each note. Defaults totrue.linkToMore: The slug of a page that lists more notes (e.g.tags/or a folder). When set and there are more notes thanlimit, a "See N more →" link is shown. Defaults tofalse(no link).hideTagPages: Whether to hide tag pages from the list. Defaults tofalse.hideFolderPages: Whether to hide folder pages from the list. Defaults tofalse.
Pages hidden with UnlistedPages are always left out.
TS override options (in quartz.ts, for callback functions that can't be expressed in YAML):
filter:(f: QuartzPluginData) => boolean{:ts}, which pages to include. Defaults to all.sort:(f1: QuartzPluginData, f2: QuartzPluginData) => number{:ts}. Defaults to newest first, tie-breaking on title.
Default options
The default config has a disabled entry without a layout; the component then goes after the page body (afterBody, priority 50). To enable it:
- source: "@quartz-community/recent-notes"
enabled: true
options:
limit: 3
showTags: true
linkToMore: false
hideTagPages: false
hideFolderPages: false
layout:
position: afterBody
priority: 50
TS override example
import * as ExternalPlugin from "./.quartz/plugins"
// Must be placed before loadQuartzConfig()
ExternalPlugin.RecentNotes({
filter: (f) => f.slug?.startsWith("blog/") ?? false,
})
API
- Category: Component
- Function name:
ExternalPlugin.RecentNotes(). - Source:
quartz-community/recent-notes - Install:
npx quartz plugin add @quartz-community/recent-notes