disqus_script_count.html 486 B

12345678910111213
  1. {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}
  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 = '//' + disqus_shortname + '.disqus.com/count.js';
  8. (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
  9. }());
  10. </script>
  11. {% endif %}