diff options
author | Christopher John Jackson <hello@cj-jackson.com> | 2021-09-17 22:29:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-17 22:29:19 +0300 |
commit | 00c8616931ae16fa499bd07e3a93dd7f6028000f (patch) | |
tree | a87bdefb20bf25fbdfd16731040d214f658a7ec7 | |
parent | 5693c4bf7a197936dcf8267409b23aef462df029 (diff) |
fix(article/comments): accept boolean `true` in `.Params.comments` (#352)
-rw-r--r-- | layouts/_default/single.html | 4 |
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 }} |