From 21c007e2fcf73fe4ef04dd07db7116afed46047a Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 31 May 2023 21:01:23 +0000
Subject: [PATCH] rendering, link resolution, asset copying

---
 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