From 663c41fa41faad1528335a18c73a197ed5c6ea11 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 03 Aug 2023 06:04:26 +0000
Subject: [PATCH] use posix style paths for all path ops
---
quartz/build.ts | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/quartz/build.ts b/quartz/build.ts
index 07b51fb..c8b5b02 100644
--- a/quartz/build.ts
+++ b/quartz/build.ts
@@ -99,7 +99,7 @@
ctx.allSlugs = [...new Set([...contentMap.keys(), ...toRebuild])]
.filter((fp) => !toRemove.has(fp))
- .map((fp) => slugifyFilePath(path.relative(argv.directory, fp) as FilePath))
+ .map((fp) => slugifyFilePath(path.posix.relative(argv.directory, fp) as FilePath))
const parsedContent = await parseMarkdown(ctx, filesToRebuild)
for (const content of parsedContent) {
--
Gitblit v1.10.0