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

github.com/gonnux/hugo-apps-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByeonggon Lee <gonny952@gmail.com>2020-03-08 13:35:34 +0300
committerByeonggon Lee <gonny952@gmail.com>2020-03-08 13:35:34 +0300
commit35cb432743382c4df5c406de8132a2786f954aac (patch)
tree3c78c10f1a416d7bb3276bee923d1c0822efef23
parentddf60b8586f84a0996330162963e5d068b348961 (diff)
Fix disqus bug
-rw-r--r--layouts/_default/single.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index b2d0226..0532d6d 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -6,10 +6,8 @@
{{- end -}}
{{- .Content -}}
{{- if not (eq .Site.DisqusShortname "") -}}
- {{- if and (isset .Params "enabledisqus") (not .Params.full) -}}
- {{- if .Params.enableDisqus -}}
- {{- template "_internal/disqus.html" . -}}
- {{- end -}}
+ {{- if and (eq (.Params.enableDisqus | default false) true) (not (eq (.Params.full | default true) false)) -}}
+ {{- template "_internal/disqus.html" . -}}
{{- end -}}
{{- end -}}
</div>