From e66d5b81d2afcfb09bb16b63b3f059f98a59ce42 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 27 Jan 2018 01:01:24 -0800 Subject: [PATCH] Fix disqus comments --- source/_includes/javascripts/scripts.html | 5 ----- source/_layouts/post.html | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/source/_includes/javascripts/scripts.html b/source/_includes/javascripts/scripts.html index 71b49ae662e..dcb2fc520a1 100644 --- a/source/_includes/javascripts/scripts.html +++ b/source/_includes/javascripts/scripts.html @@ -4,11 +4,6 @@ {% endcomment %} {% include javascripts/google_analytics.html %} - -{% if site.disqus_short_name and post.date < site.disqus_end_date and page.comments == true %} -{% include javascripts/disqus.html %} -{% endif %} - {% include javascripts/algolia.html %} {% if page.sidebar != false %} diff --git a/source/_layouts/post.html b/source/_layouts/post.html index 3ba1b0b4e6b..27171790019 100644 --- a/source/_layouts/post.html +++ b/source/_layouts/post.html @@ -15,6 +15,8 @@ is_post: true

Comments

{% include blog/post/disqus_thread.html %}
+ +{% include javascripts/disqus.html %} {% endif %} {% if page.comments == true and post.date > site.disqus_end_date %}