From 80187587d2def947a466887f4bf15d9f8003dd14 Mon Sep 17 00:00:00 2001 From: Roman Valls Guimera Date: Sat, 27 Dec 2014 18:20:25 +0100 Subject: [PATCH] Solves issue #94 with disqus comments being enabled by default globally --- _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 92b1608..d42a0e6 100644 --- a/_includes/scripts.html +++ b/_includes/scripts.html @@ -58,6 +58,6 @@ {% endif %} -{% if page.comments %} +{% if page.comments or site.comments %} {% include disqus_comments.html %} {% endif %} diff --git a/_layouts/post.html b/_layouts/post.html index a94758d..f5cd081 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -35,13 +35,13 @@ By {{ author.name }} {% if page.modified %}{% endif %} - {% if site.owner.disqus-shortname and page.comments == true %} Comment{% endif %} + {% if (site.owner.disqus-shortname and page.comments) or site.comments %} Comment{% endif %} {% if page.share %}{% include social-share.html %}{% endif %} {% if page.ads == true %}{% include ad-sidebar.html %}{% endif %}
{{ content }} - {% if site.owner.disqus-shortname and page.comments == true %}
{% endif %} + {% if (site.owner.disqus-shortname and page.comments) or site.comments %}
{% endif %}