use noComments to determine comments render

This commit is contained in:
Reorx 2022-05-05 01:16:51 +08:00
parent d3ec050c59
commit 29f261e12a
1 changed files with 1 additions and 1 deletions

View File

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