use noComments to determine comments render

This commit is contained in:
Reorx 2022-05-05 01:16:51 +08:00
parent d3ec050c59
commit 29f261e12a

View file

@ -44,7 +44,7 @@
{{- end }}
</footer>
{{- if (.Param "comments") }}
{{- if not (.Param "noComments") }}
{{- partial "comments.html" . }}
{{- end }}
</article>