From 52460f376f79cd4640b8ed8a1343acaf02bf90aa Mon Sep 17 00:00:00 2001 From: FishCat233 <50800434+FishCat233@users.noreply.github.com> Date: Fri, 17 Oct 2025 00:10:25 +0800 Subject: [PATCH] fix: modified time data of frontmatter didnt loaded. (#2165) --- quartz/plugins/transformers/frontmatter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quartz/plugins/transformers/frontmatter.ts b/quartz/plugins/transformers/frontmatter.ts index 1103900c5..db1cf4213 100644 --- a/quartz/plugins/transformers/frontmatter.ts +++ b/quartz/plugins/transformers/frontmatter.ts @@ -103,7 +103,6 @@ export const FrontMatter: QuartzTransformerPlugin> = (userOpts) const created = coalesceAliases(data, ["created", "date"]) if (created) { data.created = created - data.modified ||= created // if modified is not set, use created } const modified = coalesceAliases(data, [ @@ -113,6 +112,8 @@ export const FrontMatter: QuartzTransformerPlugin> = (userOpts) "last-modified", ]) if (modified) data.modified = modified + data.modified ||= created // if modified is not set, use created + const published = coalesceAliases(data, ["published", "publishDate", "date"]) if (published) data.published = published