add check for comments param

This commit is contained in:
Adam Ormsby 2019-12-27 14:32:20 +07:00
parent 91ca408bdd
commit d9ade4410a

View File

@ -61,7 +61,7 @@
{{ end }}
{{ end }}
{{ if eq .Type $.Site.Params.contentTypeName }}
{{ if or (eq .Type $.Site.Params.contentTypeName) (.Params.Comments) }}
{{ partial "comments.html" . }}
{{ end }}
</div>