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.4 KiB
title, description, tags, image, repository, enabled, required
| title | description | tags | image | repository | enabled | required | |
|---|---|---|---|---|---|---|---|
| CreatedModifiedDate | Determines creation and modification dates from frontmatter, git, or filesystem. |
|
[quartz-community/created-modified-date](https://github.com/quartz-community/created-modified-date) | true | false |
This plugin determines the created, modified, and published dates for a document using three potential data sources: frontmatter metadata, Git history, and the filesystem. See authoring content#Syntax for more information.
Note
For information on how to add, remove or configure plugins, see the configuration#Plugins page.
This plugin accepts the following configuration options:
priority: The data sources to consult for date information. Highest priority first. Possible values are"frontmatter","git", and"filesystem". Defaults to["frontmatter", "git", "filesystem"].defaultDateType: Which date type to use when displaying dates (for example in ContentMeta, RecentNotes and folder/tag listings). Can be"created","modified", or"published". Defaults to"modified".
When loading the frontmatter, the created, modified and published fields (and their aliases such as date, lastmod and updated, see Frontmatter#Supported frontmatter) are used. Git only provides the modified date; the filesystem provides created and modified dates. A source only fills dates that a higher-priority source has not set. Date-only values such as 2024-03-05 are read as local midnight.
Default options
- source: "@quartz-community/created-modified-date"
enabled: true
options:
defaultDateType: modified
priority:
- frontmatter
- git
- filesystem
order: 10
Warning
If you rely on
gitfor dates, make suredefaultDateTypeis set tomodifiedin the plugin's options.Depending on how you hosting your Quartz, the
filesystemdates of your local files may not match the final dates. In these cases, it may be better to usegitorfrontmatterto guarantee correct dates.
API
- Category: Transformer
- Function name:
ExternalPlugin.CreatedModifiedDate(). - Source:
quartz-community/created-modified-date - Install:
npx quartz plugin add @quartz-community/created-modified-date