From 53285970c43f395514be48077eb13ed9bc82f9e3 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 18 Jul 2013 11:29:49 -0400 Subject: [PATCH] Load Disqus comments when shortname and comments: true are defined --- _includes/scripts.html | 2 +- _layouts/post.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 %}