Adds flag to hide comments on a page-to-page basis

This commit is contained in:
Anton Lijcklama à Nijeholt 2022-03-29 11:33:18 +02:00
parent 065f1a9f1e
commit 7b430aaaca
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 }}