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:
-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>