Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher John Jackson <hello@cj-jackson.com>2021-09-17 22:29:19 +0300
committerGitHub <noreply@github.com>2021-09-17 22:29:19 +0300
commit00c8616931ae16fa499bd07e3a93dd7f6028000f (patch)
treea87bdefb20bf25fbdfd16731040d214f658a7ec7
parent5693c4bf7a197936dcf8267409b23aef462df029 (diff)
fix(article/comments): accept boolean `true` in `.Params.comments` (#352)
-rw-r--r--layouts/_default/single.html4
1 files 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 @@
</section>
</aside>
{{ end }}
-{{ end }} \ No newline at end of file
+{{ end }}