diff --git a/_includes/scripts.html b/_includes/scripts.html index 8456963..9e6a3b7 100644 --- a/_includes/scripts.html +++ b/_includes/scripts.html @@ -18,4 +18,4 @@ })(); {% endif %} -{% if page.comments %}{% include disqus_comments.html %}{% endif %} \ No newline at end of file +{% if site.disqus_shortname and page.comments != false %}{% include disqus_comments.html %}{% endif %} \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index 912045c..c072917 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -25,12 +25,12 @@ {% if page.modified %}{% endif %} - {% if page.comments %} Comment{% endif %} + {% if site.disqus_shortname and page.comments != false %} Comment{% endif %} Permalink
{{ content }} - {% if page.comments %}
{% endif %} + {% if site.disqus_shortname and page.comments != false %}
{% endif %}