From 31518ce96b9a5ae4f5f3f9c76bcc65fda9f0ad36 Mon Sep 17 00:00:00 2001 From: Christopher John Jackson Date: Wed, 15 Sep 2021 19:21:45 +0100 Subject: [PATCH] Fixed bug with comments, it was not attempting boolean true, but it was accepting string "true" --- 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 040b547..dafa9f2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -17,7 +17,7 @@ {{ partial "article/components/related-contents" . }} - {{ if or (not (isset .Params "comments")) (eq .Params.comments "true")}} + {{ if or (not (isset .Params "comments")) (eq .Params.comments true) (eq .Params.comments "true")}} {{ partial "comments/include" . }} {{ end }}