From 3a29f4c86ee7ed13fb8683b2728a856581e32de7 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sat, 10 Jun 2023 02:58:58 +0000
Subject: [PATCH] add custom spa solution
---
quartz/plugins/transformers/lastmod.ts | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/quartz/plugins/transformers/lastmod.ts b/quartz/plugins/transformers/lastmod.ts
index cb57bb8..95b5455 100644
--- a/quartz/plugins/transformers/lastmod.ts
+++ b/quartz/plugins/transformers/lastmod.ts
@@ -45,12 +45,11 @@
modified ||= file.data.frontmatter["last-modified"]
published ||= file.data.frontmatter.publishDate
} else if (source === "git") {
- console.log(file)
if (!repo) {
repo = new Repository(file.cwd)
}
- modified ||= new Date(await repo.getFileLatestModifiedDateAsync(fp))
+ modified ||= new Date(await repo.getFileLatestModifiedDateAsync(file.data.filePath!))
}
}
--
Gitblit v1.10.0