pelican-alchemy/alchemy/templates/include/disqus_comments.html
Alan Orth a6bada6a1e
Update Disqus JS embed to use HTTPS
We moved to HTTPS on the blog so we need to be loading JS resources
over HTTPS as well or else we get mixed-content errors in browsers.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-02-07 00:58:25 +03:00

24 lines
818 B
HTML

{% if DISQUS_SITENAME %}
<div id="disqus_thread">
<script>
var disqus_shortname = '{{ DISQUS_SITENAME }}';
(function() {
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>
Please enable JavaScript to view the
<a href="https://disqus.com/?ref_noscript={{ DISQUS_SITENAME }}">
comments powered by Disqus.
</a>
</noscript>
<a href="https://disqus.com" class="dsq-brlink">
blog comments powered by <span class="logo-disqus">Disqus</span>
</a>
</div>
{% endif %}