add comments=false check
This commit is contained in:
parent
d9ade4410a
commit
28b6f11618
1 changed files with 6 additions and 2 deletions
|
@ -61,8 +61,12 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{ if not (eq .Params.Comments "false") }}
|
||||||
{{ if or (eq .Type $.Site.Params.contentTypeName) (.Params.Comments) }}
|
{{ if or (eq .Type $.Site.Params.contentTypeName) (.Params.Comments) }}
|
||||||
{{ partial "comments.html" . }}
|
{{ partial "comments.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue