diff options
| author | Reorx <novoreorx@gmail.com> | 2022-05-05 01:16:51 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-05-05 01:16:51 +0800 |
| commit | 29f261e12a77b7bcfa82fc5340c6d471e3a35cf3 (patch) | |
| tree | 913daa4ce1660570350d271069c1e01b7063e438 /layouts/_default | |
| parent | d3ec050c59ad86e7c6f2eea6e88bab0c8a0fa50a (diff) | |
use noComments to determine comments render
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/single.html | 2 |
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> |
