summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Tomaselli <tomaselli.fr@gmail.com>2025-01-01 18:13:11 +0100
committerGitHub <noreply@github.com>2025-01-01 18:13:11 +0100
commit581742aa04eaa546208d4f50b026753977eefc35 (patch)
treec35d525a45533a0fc2603914967bfc4b3b2c42b7
parent9c217bd883c6b6179e3b35038a9b1788d0077466 (diff)
parentbe6a3dd6c77fd0581fac383d67c4bbe7d86c5a45 (diff)
Merge pull request #59 from Senophyx/main
Adding parameter `disableComment` to disable Giscus comment on specific post.
-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..159c328 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -66,8 +66,10 @@
<div class="single-content">
{{ .Content }}
{{ if .Site.Params.giscus.enable }}
+ {{ if not .Params.disableComment }}
{{ partial "comments.html" . }}
{{ end }}
+ {{ end }}
</div>
{{ if .Store.Get "hasMermaid" }}