summaryrefslogtreecommitdiff
path: root/config/_default/config.yaml
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-05-16 15:03:14 +0800
committerEltrac <hi@guhub.cn>2025-05-16 15:03:14 +0800
commit5d37a104c4a413df04e4b0fbcfe6cb026cd52136 (patch)
tree0cf4e97f743a0cf4722d636accf8a9e65ac8538e /config/_default/config.yaml
parent8275be2d2bb9f170000171671629fc215f2d91cb (diff)
perf: replace tocbot with statically generated toc
Generate TOC with Hugo's built-in {{ .TableOfContents }} and add minimal script to implement collapsible list and active styles. Encapsulate TOC as a component where all JavaSript and CSS is in one place with HTML. Configure markup. Former-commit-id: 4b4629edb733d5ebd6485755fd2f63b0457f62c8
Diffstat (limited to 'config/_default/config.yaml')
-rw-r--r--config/_default/config.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/_default/config.yaml b/config/_default/config.yaml
index adb397db..522c87bf 100644
--- a/config/_default/config.yaml
+++ b/config/_default/config.yaml
@@ -17,6 +17,9 @@ markup:
noClasses: true
style: catppuccin-macchiato
tabWidth: 2
+ tableOfContents:
+ startLevel: 2
+ endLevel: 3
services:
rss: