From 29f261e12a77b7bcfa82fc5340c6d471e3a35cf3 Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 5 May 2022 01:16:51 +0800 Subject: [PATCH] use noComments to determine comments render --- 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 32bc143..2844957 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -44,7 +44,7 @@ {{- end }} - {{- if (.Param "comments") }} + {{- if not (.Param "noComments") }} {{- partial "comments.html" . }} {{- end }}