diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 4005ed5..b211eb0 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -36,6 +36,7 @@
{{ end }}
+ {{- if .Site.DisqusShortname -}}
{{- $.Scratch.Set "isDisqus" true -}}
{{- if and (isset .Params "type") (in .Site.Params.disableDisqusTypes .Params.type) -}}
@@ -51,6 +52,7 @@
{{- if eq ($.Scratch.Get "isDisqus") true -}}
{{- partial "disqus.html" . -}}
{{- end -}}
+ {{- end -}}
{{ partial "footer.html" . }}