This commit is contained in:
parent
22f5e4d213
commit
0f02b9ba3d
@ -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
|
||||||
|
@ -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()}`));
|
||||||
|
Loading…
Reference in New Issue
Block a user