summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-27 13:10:06 +0800
committerEltrac <hi@guhub.cn>2025-03-27 13:10:06 +0800
commit08f5f8bb193cafd2a54320c44f082b4a81f52ac5 (patch)
treec4cdc835a5eb0d1045715437794b51f0800d2db4 /layouts/_default
parent37b996572636df60dbd99265d7956625fc03b5cc (diff)
feat: add library section
Former-commit-id: 83f509dd79c381a8bb1254a5de14568c61bb92e2
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 13c56ada..f22f8d6b 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -57,7 +57,9 @@
{{ end }}
</div>
- {{ partial "components/comment.html" . }}
+ {{ if in .Site.Params.mainSections .Type }}
+ {{ partial "components/comment.html" . }}
+ {{ end }}
<script src="/js/tocbot.min.js"></script>
<script>