diff options
author | Matúš Námešný <matus@namesny.com> | 2021-05-23 15:41:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-23 15:41:14 +0300 |
commit | 15a0db3c972acd94c9fef58d74fa207c8888fcda (patch) | |
tree | f375b3f3b812390d12d4c5e8e181575d0329185a | |
parent | 1a1ed0a503cfa789d4124b8705357362bd29d59b (diff) | |
parent | 08ee6ef21c4789155b5ff4dd45900c5a08a0f621 (diff) |
Merge pull request #71 from Yajo/yajo/wrong-number-of-args-breaks-70
fix: make nocomments work as expected
-rw-r--r-- | layouts/_default/single.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9aca15f..1f84ae6 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -16,8 +16,7 @@ <div class="post-content"> {{ .Content }} </div> - {{ if (.Params "nocomments") }} - {{ else }} + {{ if ne .Params.nocomments true }} <div class="post-comments"> {{ template "_internal/disqus.html" . }} </div> |