From 91ca408bddfd923cdcd35437db4dec318af99c78 Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Tue, 24 Dec 2019 09:32:31 +0700 Subject: [PATCH] disable comments on non-specific page types --- layouts/_default/single.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4eda128..346e430 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -60,7 +60,9 @@ {{ end }} {{ end }} - - {{ partial "comments.html" . }} + + {{ if eq .Type $.Site.Params.contentTypeName }} + {{ partial "comments.html" . }} + {{ end }} {{ end }}