fix(article/comments): accept boolean true in .Params.comments (#352)

This commit is contained in:
Christopher John Jackson 2021-09-17 20:29:19 +01:00 committed by GitHub
parent 5693c4bf7a
commit 00c8616931
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}
{{ end }}