Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/LordMathis/hugo-theme-nix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatúš Námešný <matus@namesny.com>2021-05-23 15:41:14 +0300
committerGitHub <noreply@github.com>2021-05-23 15:41:14 +0300
commit15a0db3c972acd94c9fef58d74fa207c8888fcda (patch)
treef375b3f3b812390d12d4c5e8e181575d0329185a
parent1a1ed0a503cfa789d4124b8705357362bd29d59b (diff)
parent08ee6ef21c4789155b5ff4dd45900c5a08a0f621 (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.html3
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>