From 70d86ff096a5f7ebe2bd75791b5fac865598b80b Mon Sep 17 00:00:00 2001
From: Jorge Marcelo Risco <61189874+jorgemrisco@users.noreply.github.com>
Date: Sun, 24 Mar 2024 16:40:01 +0000
Subject: [PATCH] i18n: pt-BR translation (#1024)

---
 quartz/processors/parse.ts |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/quartz/processors/parse.ts b/quartz/processors/parse.ts
index fab1795..3950fee 100644
--- a/quartz/processors/parse.ts
+++ b/quartz/processors/parse.ts
@@ -91,8 +91,9 @@
         }
 
         // base data properties that plugins may use
-        file.data.slug = slugifyFilePath(path.posix.relative(argv.directory, file.path) as FilePath)
-        file.data.filePath = fp
+        file.data.filePath = file.path as FilePath
+        file.data.relativePath = path.posix.relative(argv.directory, file.path) as FilePath
+        file.data.slug = slugifyFilePath(file.data.relativePath)
 
         const ast = processor.parse(file)
         const newAst = await processor.run(ast, file)

--
Gitblit v1.10.0