mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-14 20:35:07 +01:00
add check for comments param
This commit is contained in:
parent
91ca408bdd
commit
d9ade4410a
@ -61,7 +61,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if eq .Type $.Site.Params.contentTypeName }}
|
{{ if or (eq .Type $.Site.Params.contentTypeName) (.Params.Comments) }}
|
||||||
{{ partial "comments.html" . }}
|
{{ partial "comments.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user