summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2024-12-19 15:53:18 +0800
committerEltrac <hi@guhub.cn>2024-12-19 15:53:18 +0800
commit3a583c32bd30b6230ea03815ebea9f8c50db229c (patch)
tree776a488abc41327c375c611d4bd4556d11b61532 /layouts/_default
parentd5e989e878e2f1a4dc9814381a589e86b38769c5 (diff)
feat(theme): add tocbot for table of content
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index f212dd36..51d9cacd 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -32,6 +32,7 @@
<!-- Post Content -->
<div id="post-content" class="post-content markdown-body">
+ <div id="toc-container"><div id="toc"></div></div>
{{ .Site.Params.postHeaderContent | safeHTML }}
{{ .Content }}
</div>