попытка настроить время материала
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4ce334a081
commit
5734699b87
@ -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`,
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user