From 4cc76820331b2b327c03d27216e79bc55a58c505 Mon Sep 17 00:00:00 2001 From: Trey Hunner Date: Sun, 29 Sep 2013 22:21:44 -0400 Subject: Add proper disqus identifier comment count links Fixes #277 --- .themes/classic/source/_includes/article.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.themes/classic') diff --git a/.themes/classic/source/_includes/article.html b/.themes/classic/source/_includes/article.html index 23f48844..84279977 100644 --- a/.themes/classic/source/_includes/article.html +++ b/.themes/classic/source/_includes/article.html @@ -9,7 +9,8 @@

{% include post/date.html %}{{ time }} {% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %} - | Comments + | Comments {% endif %}

{% endunless %} -- cgit v1.2.1 From 0a1b94d222d899868e1c3a8d3518c434e909e2f1 Mon Sep 17 00:00:00 2001 From: Alexandre Perrin Date: Thu, 3 Oct 2013 10:00:27 +0200 Subject: Fix Disqus over https. Forcing http:// as protocol will make Disqus fail when server over https for security reasons. --- .themes/classic/source/_includes/disqus.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.themes/classic') diff --git a/.themes/classic/source/_includes/disqus.html b/.themes/classic/source/_includes/disqus.html index eb308779..549ba3d7 100644 --- a/.themes/classic/source/_includes/disqus.html +++ b/.themes/classic/source/_includes/disqus.html @@ -14,7 +14,7 @@ {% endif %} (function () { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script; + dsq.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + disqus_shortname + '.disqus.com/' + disqus_script; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); }()); -- cgit v1.2.1