This commit is contained in:
Patrick Yi 2025-09-10 06:52:39 -04:00 committed by GitHub
commit 206dc9a527
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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