From 8fc7b9f4c68bb8c41a156e92cfbddf3144678dcc Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 15 Nov 2023 17:43:30 +0000
Subject: [PATCH] feat: deref symlinks when copying static assets (closes #588)
---
quartz/components/TableOfContents.tsx | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/quartz/components/TableOfContents.tsx b/quartz/components/TableOfContents.tsx
index 4604565..1c55f07 100644
--- a/quartz/components/TableOfContents.tsx
+++ b/quartz/components/TableOfContents.tsx
@@ -19,8 +19,8 @@
}
return (
- <div class={`toc ${displayClass}`}>
- <button type="button" id="toc">
+ <div class={`toc ${displayClass ?? ""}`}>
+ <button type="button" id="toc" class={fileData.collapseToc ? "collapsed" : ""}>
<h3>Table of Contents</h3>
<svg
xmlns="http://www.w3.org/2000/svg"
@@ -60,7 +60,7 @@
}
return (
- <details id="toc" open>
+ <details id="toc" open={!fileData.collapseToc}>
<summary>
<h3>Table of Contents</h3>
</summary>
--
Gitblit v1.10.0