summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-05-05 01:16:51 +0800
committerReorx <novoreorx@gmail.com>2022-05-05 01:16:51 +0800
commit29f261e12a77b7bcfa82fc5340c6d471e3a35cf3 (patch)
tree913daa4ce1660570350d271069c1e01b7063e438 /layouts/_default
parentd3ec050c59ad86e7c6f2eea6e88bab0c8a0fa50a (diff)
use noComments to determine comments render
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 32bc143..2844957 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -44,7 +44,7 @@
{{- end }}
</footer>
- {{- if (.Param "comments") }}
+ {{- if not (.Param "noComments") }}
{{- partial "comments.html" . }}
{{- end }}
</article>