* Added to the documentation which values of frontmatter are referenced. * The source code I was looking at seemed to be out of date and the wrong listings were corrected. * The list of frontmatter was moved to Frontmatter.md and a link was added.
1.3 KiB
1.3 KiB
title | tags | |
---|---|---|
CreatedModifiedDate |
|
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"]
.
When loading the frontmatter, the value of Frontmatter#List is used.
Warning
If you rely on
git
for dates, make suredefaultDateType
is set tomodified
inquartz.config.ts
.Depending on how you hosting your Quartz, the
filesystem
dates of your local files may not match the final dates. In these cases, it may be better to usegit
orfrontmatter
to guarantee correct dates.
API
- Category: Transformer
- Function name:
Plugin.CreatedModifiedDate()
. - Source:
quartz/plugins/transformers/lastmod.ts
.