From 59109a8c1d505f516d50d6b7f88cfe070bc1ca84 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 08 Jun 2023 05:38:45 +0000
Subject: [PATCH] add flamethrower router
---
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