summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorSenophyx <lyquidpersonal@gmail.com>2024-12-25 14:01:41 +0700
committerSenophyx <lyquidpersonal@gmail.com>2024-12-25 14:01:41 +0700
commit07e60705817cee0864140e35e7ffdd455e647169 (patch)
treed25ce7e59255d1bf46cc474170d8cdfebd6e2abd /layouts/_default
parent15f98f63151df0e8b6ebf1419feb65563a386a6b (diff)
Adding features to disable comment on specific post
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 308ee5b..a077f47 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -65,9 +65,11 @@
<div class="single-content">
{{ .Content }}
+ {{ if not .Params.disableComment }}
{{ if .Site.Params.giscus.enable }}
{{ partial "comments.html" . }}
{{ end }}
+ {{ end }}
</div>
{{ if .Store.Get "hasMermaid" }}