From 28b6f11618025cb58584ef1c0f4dfccfb1d494d6 Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Fri, 27 Dec 2019 14:51:52 +0700 Subject: [PATCH] add comments=false check --- layouts/_default/single.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7f42880..19cd9ac 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -61,8 +61,12 @@ {{ end }} {{ end }} - {{ if or (eq .Type $.Site.Params.contentTypeName) (.Params.Comments) }} - {{ partial "comments.html" . }} + + {{ if not (eq .Params.Comments "false") }} + {{ if or (eq .Type $.Site.Params.contentTypeName) (.Params.Comments) }} + {{ partial "comments.html" . }} + {{ end }} {{ end }} + {{ end }}