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

This commit is contained in:
Struchkov Mark 2024-09-07 17:29:31 +03:00
parent 22f5e4d213
commit 0f02b9ba3d
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C
2 changed files with 2 additions and 4 deletions

View File

@ -30,7 +30,8 @@ export default ((opts?: Partial<ContentMetaOptions>) => {
const segments: (string | JSX.Element)[] = [] const segments: (string | JSX.Element)[] = []
if (fileData.dates) { if (fileData.dates) {
segments.push(formatDate(getDate(cfg, fileData)!, cfg.locale)) segments.push("Создана: " + formatDate(getDate(cfg, fileData)!, cfg.locale))
segments.push("Обновлена: " + formatDate(getDate(cfg, fileData)!, cfg.locale))
} }
// Display reading time if enabled // Display reading time if enabled

View File

@ -58,9 +58,6 @@ export const CreatedModifiedDate: QuartzTransformerPlugin<Partial<Options>> = (u
// Get a reference to the main git repo. // Get a reference to the main git repo.
// It's either the same as the workdir, // It's either the same as the workdir,
// or 1+ level higher in case of a submodule/subtree setup // or 1+ level higher in case of a submodule/subtree setup
console.log(`Current working directory: ${file.cwd}`);
console.log(`Attempting to discover Git repository from: ${path.join(file.cwd, 'content')}`);
try { try {
repo = await Repository.discover(path.join(file.cwd, 'content'), { search: true }); repo = await Repository.discover(path.join(file.cwd, 'content'), { search: true });
console.log(chalk.green(`Git repository found at: ${repo.path()}`)); console.log(chalk.green(`Git repository found at: ${repo.path()}`));