From d9ade4410a02f8b66d87838802115ead888f280a Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Fri, 27 Dec 2019 14:32:20 +0700 Subject: [PATCH] add check for comments param --- layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 346e430..7f42880 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -61,7 +61,7 @@ {{ end }} {{ end }} - {{ if eq .Type $.Site.Params.contentTypeName }} + {{ if or (eq .Type $.Site.Params.contentTypeName) (.Params.Comments) }} {{ partial "comments.html" . }} {{ end }}