mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2024-11-24 18:45:34 +03:00
Adds flag to hide comments on a page-to-page basis
This commit is contained in:
parent
065f1a9f1e
commit
7b430aaaca
2 changed files with 3 additions and 0 deletions
|
@ -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 a new issue