From 0f02b9ba3d5d01ac0299ef5b3713c0eaff2ce06d Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 7 Sep 2024 17:29:31 +0300 Subject: [PATCH] fixed lastmod.ts --- quartz/components/ContentMeta.tsx | 3 ++- quartz/plugins/transformers/lastmod.ts | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/quartz/components/ContentMeta.tsx b/quartz/components/ContentMeta.tsx index 5dfec1448..f11983f95 100644 --- a/quartz/components/ContentMeta.tsx +++ b/quartz/components/ContentMeta.tsx @@ -30,7 +30,8 @@ export default ((opts?: Partial) => { const segments: (string | JSX.Element)[] = [] 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 diff --git a/quartz/plugins/transformers/lastmod.ts b/quartz/plugins/transformers/lastmod.ts index 9869ee742..f7cf53b8f 100644 --- a/quartz/plugins/transformers/lastmod.ts +++ b/quartz/plugins/transformers/lastmod.ts @@ -58,9 +58,6 @@ export const CreatedModifiedDate: QuartzTransformerPlugin> = (u // Get a reference to the main git repo. // It's either the same as the workdir, // 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 { repo = await Repository.discover(path.join(file.cwd, 'content'), { search: true }); console.log(chalk.green(`Git repository found at: ${repo.path()}`));