From a7e20804f5fe68dff7b71f3065f60e2147d633ba Mon Sep 17 00:00:00 2001
From: Sam Stokes <me@samstokes.co.uk>
Date: Tue, 05 Dec 2023 02:18:47 +0000
Subject: [PATCH] feat: Support space-delimited tags in `FrontMatter` transformer (#620)
---
quartz/components/TableOfContents.tsx | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/quartz/components/TableOfContents.tsx b/quartz/components/TableOfContents.tsx
index 3847726..1c55f07 100644
--- a/quartz/components/TableOfContents.tsx
+++ b/quartz/components/TableOfContents.tsx
@@ -20,7 +20,7 @@
return (
<div class={`toc ${displayClass ?? ""}`}>
- <button type="button" id="toc">
+ <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