fixed lastmod.ts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2024-09-07 12:34:06 +03:00
parent 22f1b7a476
commit 22f5e4d213
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -71,7 +71,7 @@ export const CreatedModifiedDate: QuartzTransformerPlugin<Partial<Options>> = (u
} }
try { try {
modified ||= await repo.getFileLatestModifiedDateAsync(file.data.filePath!); modified ||= await repo.getFileLatestModifiedDateAsync(file.data.filePath!.replace(/^content\//, ''));
} catch (error) { } catch (error) {
console.log(chalk.red(`Error retrieving latest modified date for ${file.data.filePath}: ${error.message}`)); console.log(chalk.red(`Error retrieving latest modified date for ${file.data.filePath}: ${error.message}`));
} }