summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
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
commit83f509dd79c381a8bb1254a5de14568c61bb92e2 (patch)
treeedf57e3b77b0ae2933de06dabf0167c0621f78b8 /layouts/_default/single.html
parent6576dc46469cdf1fb25cedf2699fe4ba7002a5ef (diff)
feat: add library section
Diffstat (limited to 'layouts/_default/single.html')
-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>