From 22f5e4d213825494de51ebb07f295becb724fd3a Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 7 Sep 2024 12:34:06 +0300 Subject: [PATCH] fixed lastmod.ts --- quartz/plugins/transformers/lastmod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/plugins/transformers/lastmod.ts b/quartz/plugins/transformers/lastmod.ts index ce894296d..9869ee742 100644 --- a/quartz/plugins/transformers/lastmod.ts +++ b/quartz/plugins/transformers/lastmod.ts @@ -71,7 +71,7 @@ export const CreatedModifiedDate: QuartzTransformerPlugin> = (u } try { - modified ||= await repo.getFileLatestModifiedDateAsync(file.data.filePath!); + modified ||= await repo.getFileLatestModifiedDateAsync(file.data.filePath!.replace(/^content\//, '')); } catch (error) { console.log(chalk.red(`Error retrieving latest modified date for ${file.data.filePath}: ${error.message}`)); }