fix(lastmod): fix where created may be later than modified when using git modified date

This commit is contained in:
Patrick Yi 2025-08-17 18:56:47 -04:00
parent ebff6617bb
commit 37c57a2745

View File

@ -80,6 +80,7 @@ export const CreatedModifiedDate: QuartzTransformerPlugin<Partial<Options>> = (u
} else if (source === "git" && repo) {
try {
const relativePath = path.relative(repositoryWorkdir, fullFp)
created ||= await repo.getFileLatestModifiedDateAsync(relativePath)
modified ||= await repo.getFileLatestModifiedDateAsync(relativePath)
} catch {
console.log(