diff --git a/_includes/scripts.html b/_includes/scripts.html
index e8fe142..ad470f5 100644
--- a/_includes/scripts.html
+++ b/_includes/scripts.html
@@ -54,4 +54,4 @@
})();
{% endif %}
-{% if site.disqus_shortname %}{% if page.comments %}{% include disqus_comments.html %}{% endif %}{% endif %}
\ No newline at end of file
+{% if site.disqus_shortname and page.comments %}{% include disqus_comments.html %}{% endif %}
\ No newline at end of file
diff --git a/_layouts/post.html b/_layouts/post.html
index 7ad6d39..b858589 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -41,7 +41,7 @@
{% endif %}
{% if page.modified %}{% endif %}
- {% if site.disqus_shortname %}{% if page.comments %}Comment{% endif %}{% endif %}
+ {% if site.disqus_shortname and page.comments %}Comment{% endif %}
Permalink
{% if page.share %}