From ee964a15351eab53f9a26dfc4098f4cf69cefe40 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Mon, 18 May 2020 11:14:45 +0800 Subject: Update to disable comments for designated post --- layouts/_default/single.html | 2 ++ layouts/partials/scripts.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 87b6d62..e2b0fc1 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -23,6 +23,8 @@ {{ end }} +{{ if ne .Params.noComments true }} {{ partial "comment-utterances.html" . }} {{ partial "comment-disqus.html" . }} +{{ end }} {{ end }} \ No newline at end of file diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 1a8a28c..6bcdd8b 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -8,6 +8,7 @@ +{{ if ne .Params.noComments true }} {{ if and (.IsPage) (.Site.Params.utterancesRepo) }} {{ end }} +{{ end }} {{ if in .Site.Params.mainSections .Type }} -- cgit v1.2.3