From 00c8616931ae16fa499bd07e3a93dd7f6028000f Mon Sep 17 00:00:00 2001 From: Christopher John Jackson Date: Fri, 17 Sep 2021 20:29:19 +0100 Subject: [PATCH] fix(article/comments): accept boolean `true` in `.Params.comments` (#352) --- layouts/_default/single.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 040b547..902fa98 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 not (eq .Params.comments false) }} {{ partial "comments/include" . }} {{ end }} @@ -54,4 +54,4 @@ {{ end }} -{{ end }} \ No newline at end of file +{{ end }}