diff --git a/assets/styles/base.scss b/assets/styles/base.scss
index aa172d0c..38c1f53e 100644
--- a/assets/styles/base.scss
+++ b/assets/styles/base.scss
@@ -23,6 +23,23 @@ p, ul, text {
padding: revert;
}
+.mainTOC {
+ background: var(--lightgray);
+ border-radius: 8px;
+ padding: 0.8em;
+}
+
+.mainTOC details summary {
+ cursor: zoom-in;
+ font-family: Inter;
+ color: var(--dark);
+ font-weight: 700;
+}
+
+.mainTOC details[open] summary {
+ cursor: zoom-out;
+}
+
#TableOfContents > ol {
counter-reset: section;
margin-left: 0em;
diff --git a/data/config.yaml b/data/config.yaml
index c59c0e08..e33c3293 100644
--- a/data/config.yaml
+++ b/data/config.yaml
@@ -1,5 +1,6 @@
name: Jacky Zhao
enableToc: true
+openToc: false
enableLinkPreview: true
enableLatex: true
description:
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 3423a0c5..02965f91 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -24,8 +24,10 @@
{{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false)) }}
{{end}}
{{partial "textprocessing.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
index 6fb75f9d..466a05a3 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -15,8 +15,10 @@
{{ if (and $.Site.Data.config.enableToc (ne .Params.enableToc false)) }}
{{end}}
{{partial "textprocessing.html" . }}