Merge pull request #122 from aormsby/disable-page-comments

PR - Add condition to show *comments* only in defined contentType pages
This commit is contained in:
Radek Kozieł 2019-12-29 19:07:18 +01:00 committed by GitHub
commit 5b4c773554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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