Change disqus src to avoid mixed content warnings

Change the location of the disqus.com/count.js in
order to avoid mixed content warnings when serving
over SSL.
This commit is contained in:
Maarten Vermeyen 2016-10-29 23:22:13 +02:00
parent d5370358d2
commit 48413ad6ad

View file

@ -58,11 +58,11 @@
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
{% if fa %}<i class="fa-fw fa fa-comments"></i>{% endif %}
<a href="{% if pagename != post.docname%}{{ pathto(post.docname) }}{% endif %}#disqus_thread" data-disqus-identifier="/{{post.docname}}/"> {% if not fa %}comment(s){% endif %}</a>
</li>
{% endif %}
{% endif %}