From 9576701d8532b9697df62c96d7c8676afd985b2d Mon Sep 17 00:00:00 2001
From: Andrew G. Dunn <andrew@dunn.dev>
Date: Mon, 02 Mar 2026 16:31:53 +0000
Subject: [PATCH] fix: await micromorph() to prevent race condition with nav event handlers (#2323)
---
quartz/plugins/transformers/frontmatter.ts | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/quartz/plugins/transformers/frontmatter.ts b/quartz/plugins/transformers/frontmatter.ts
index 1103900..db1cf42 100644
--- a/quartz/plugins/transformers/frontmatter.ts
+++ b/quartz/plugins/transformers/frontmatter.ts
@@ -103,7 +103,6 @@
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 @@
"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
--
Gitblit v1.10.0