disqus_script.html 444 B

123456789101112
  1. {% if DISQUS_SITENAME %}
  2. <script type="text/javascript">
  3. var disqus_shortname = '{{ DISQUS_SITENAME }}';
  4. (function () {
  5. var s = document.createElement('script'); s.async = true;
  6. s.type = 'text/javascript';
  7. s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
  8. (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
  9. }());
  10. </script>
  11. {% endif %}