попытка настроить время материала
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 { 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 { } catch {
console.log( console.log(
chalk.yellow( chalk.yellow(
`\nWarning: ${file.data `\nWarning: ${fullFp!} isn't yet tracked by git, last modification date is not available for this file`,
.filePath!} isn't yet tracked by git, last modification date is not available for this file`,
), ),
) )
} }