From c4cf0dcb022ff826433b63b8ff68830bb8503895 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 18 Jun 2023 17:47:07 +0000
Subject: [PATCH] local and global graph
---
quartz/path.ts | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/quartz/path.ts b/quartz/path.ts
index 4efd748..3ae51cc 100644
--- a/quartz/path.ts
+++ b/quartz/path.ts
@@ -13,10 +13,6 @@
cleanPath = cleanPath.slice(0, -"index".length)
}
- if (cleanPath === "") {
- cleanPath = "./"
- }
-
return cleanPath + anchor
}
@@ -36,7 +32,7 @@
export function resolveToRoot(slug: string): string {
let fp = trimPathSuffix(slug)
- if (fp === "./") {
+ if (fp === "") {
return "."
}
--
Gitblit v1.10.0