If the Disqus shortname isn't set then the user obviously doesn't want to use disqus, so skip the template entirely.pull/6/head
@@ -36,6 +36,7 @@ | |||
{{ end }} | |||
</div> | |||
{{- 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 -}} | |||
</div> | |||
</div> | |||
{{ partial "footer.html" . }} |