From 347e33d7d982f442304453d8e338226014bbc20f Mon Sep 17 00:00:00 2001 From: Jorge Arias Date: Thu, 17 Sep 2015 14:17:18 -0300 Subject: [PATCH] Moved section script of "Comments counter" Discus Inset into if site.disqus-shortname --- _includes/js.html | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/_includes/js.html b/_includes/js.html index 9b2afe0..7ab1280 100755 --- a/_includes/js.html +++ b/_includes/js.html @@ -51,24 +51,24 @@ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); - {% endif %} - -{% endif %} + + {% if page.section-type == "post" or page.section-type == "blog" or page.section-type == "index" or page.section-type == "tag" %} + -{% if page.section-type == "post" or page.section-type == "blog" or page.section-type == "index" or page.section-type == "tag" %} + + {% endif %} + + {% endif %} - /* * * DON'T EDIT BELOW THIS LINE * * */ - (function () { - var s = document.createElement('script'); s.async = true; - s.type = 'text/javascript'; - s.src = '//' + disqus_shortname + '.disqus.com/count.js'; - (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); - }()); - {% endif %}