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