From e47c29d2fd4eae06c511c914e2a5fcb057b44d7b Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Aug 2024 21:14:29 +0000
Subject: [PATCH] chore(deps): bump rehype-katex from 7.0.0 to 7.0.1 (#1356)
---
quartz/components/ExplorerNode.tsx | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/quartz/components/ExplorerNode.tsx b/quartz/components/ExplorerNode.tsx
index 2968a03..e57d677 100644
--- a/quartz/components/ExplorerNode.tsx
+++ b/quartz/components/ExplorerNode.tsx
@@ -168,10 +168,8 @@
const isDefaultOpen = opts.folderDefaultState === "open"
// Calculate current folderPath
- let folderPath = ""
- if (node.name !== "") {
- folderPath = joinSegments(fullPath ?? "", node.name)
- }
+ const folderPath = node.name !== "" ? joinSegments(fullPath ?? "", node.name) : ""
+ const href = resolveRelative(fileData.slug!, folderPath as SimpleSlug) + "/"
return (
<>
@@ -205,11 +203,7 @@
{/* render <a> tag if folderBehavior is "link", otherwise render <button> with collapse click event */}
<div key={node.name} data-folderpath={folderPath}>
{folderBehavior === "link" ? (
- <a
- href={resolveRelative(fileData.slug!, folderPath as SimpleSlug)}
- data-for={node.name}
- class="folder-title"
- >
+ <a href={href} data-for={node.name} class="folder-title">
{node.displayName}
</a>
) : (
--
Gitblit v1.10.0