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:
commit
e0213b0d4e
@ -9,4 +9,5 @@ keywords = ["", ""]
|
|||||||
description = ""
|
description = ""
|
||||||
showFullContent = false
|
showFullContent = false
|
||||||
readingTime = false
|
readingTime = false
|
||||||
|
hideComments = false
|
||||||
+++
|
+++
|
||||||
|
@ -49,6 +49,8 @@
|
|||||||
{{ partial "posts_pagination.html" . }}
|
{{ partial "posts_pagination.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if not (.Params.hideComments | default false) }}
|
||||||
{{ partial "comments.html" . }}
|
{{ partial "comments.html" . }}
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user