Merge pull request #332 from alycklama/feature/hide-comments

Adds flag to hide comments on a page-to-page basis
This commit is contained in:
Radek Kozieł 2022-03-29 23:36:50 +02:00 committed by GitHub
commit e0213b0d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -9,4 +9,5 @@ keywords = ["", ""]
description = ""
showFullContent = false
readingTime = false
hideComments = false
+++

View File

@ -49,6 +49,8 @@
{{ partial "posts_pagination.html" . }}
{{ end }}
{{ if not (.Params.hideComments | default false) }}
{{ partial "comments.html" . }}
{{ end }}
</div>
{{ end }}