попытка настроить время материала
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2024-09-07 10:43:18 +03:00
parent 4ce334a081
commit 5734699b87
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -63,12 +63,13 @@ export const CreatedModifiedDate: QuartzTransformerPlugin<Partial<Options>> = (u
}
try {
modified ||= await repo.getFileLatestModifiedDateAsync(fullFp!)
const status = await repo.getStatusAsync();
modified ||= await repo.getFileLatestModifiedDateAsync(fullFp!);
console.log(chalk.green(`Git repository found at: ${status.tracked.includes(fullFp)}`));
} catch {
console.log(
chalk.yellow(
`\nWarning: ${file.data
.filePath!} isn't yet tracked by git, last modification date is not available for this file`,
`\nWarning: ${fullFp!} isn't yet tracked by git, last modification date is not available for this file`,
),
)
}