From 028bcec62c3ca019a96783f17eaee1ecce6e092b Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 07 Aug 2023 00:09:29 +0000
Subject: [PATCH] mobile fixes, fix bug when linking to anchor on home, docs

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

diff --git a/quartz/processors/parse.ts b/quartz/processors/parse.ts
index 23af762..52dc519 100644
--- a/quartz/processors/parse.ts
+++ b/quartz/processors/parse.ts
@@ -91,7 +91,7 @@
         }
 
         // base data properties that plugins may use
-        file.data.slug = slugifyFilePath(path.relative(argv.directory, file.path) as FilePath)
+        file.data.slug = slugifyFilePath(path.posix.relative(argv.directory, file.path) as FilePath)
         file.data.filePath = fp
 
         const ast = processor.parse(file)
@@ -103,7 +103,6 @@
         }
       } catch (err) {
         trace(`\nFailed to process \`${fp}\``, err as Error)
-        throw err
       }
     }
 

--
Gitblit v1.10.0