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:
commit
5b4c773554
1 changed files with 7 additions and 1 deletions
|
@ -60,7 +60,13 @@
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ partial "comments.html" . }}
|
{{ if not (eq .Params.Comments "false") }}
|
||||||
|
{{ if or (eq .Type $.Site.Params.contentTypeName) (.Params.Comments) }}
|
||||||
|
{{ partial "comments.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue