From 574c644bdb420855554fb64f7ffb18007953af39 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Thu, 10 Jul 2014 14:26:11 -0400 Subject: [PATCH] Don't load Disqus script on pages that don't require it - Was loading Disqus in the script.html include even when a shortname wasn't specified --- _includes/scripts.html | 2 +- _layouts/post.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %}