{% 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 = 'http://' + 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="http://disqus.com/?ref_noscript={{ DISQUS_SITENAME }}">
        comments powered by Disqus.
      </a>
    </noscript>
    <a href="http://disqus.com" class="dsq-brlink">
      blog comments powered by <span class="logo-disqus">Disqus</span>
    </a>
  </div>
{% endif %}

{% 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 %}

Update Disqus JS embed to use HTTPS
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 <c25dd0841d5fa94899de8e3e4e0aaeefb868a1ba@gmail.com>
