From c0e180a37ed25b0efe14fafe58dbad595a10de06 Mon Sep 17 00:00:00 2001
From: Xen-Echo <67518109+Xen-Echo@users.noreply.github.com>
Date: Thu, 11 Mar 2021 19:24:08 +0000
Subject: [PATCH] Implemented per page comment disabling using the page Front Matter. (#150)

---
 layouts/_default/single.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index b4ff807..baa8371 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -33,7 +33,7 @@
             </div>
         </div>
 
-        {{ if eq .Type "post"}}
+        {{ if and (eq .Type "post") (ne .Page.Params.disableComments true) }}
             {{- if .Site.DisqusShortname -}}
                 <div id="fb_comments_container">
                     <h2>{{ i18n "comments" }}</h2>

--
Gitblit v1.10.0