disqus_script_comment.html 942 B

12345678910111213141516171819
  1. <div id="disqus_thread"></div>
  2. <script type="text/javascript">
  3. var disqus_shortname = '{{ DISQUS_SITENAME }}';
  4. {% if article.disqus_identifier %}
  5. var disqus_identifier = '{{ article.disqus_identifier }}';
  6. {% else %}
  7. var disqus_identifier = '{{ SITEURL }}/{{ article.url }}';
  8. {% endif %}
  9. var disqus_url = '{{ SITEURL }}/{{ article.url }}';
  10. (function() {
  11. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  12. dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
  13. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  14. })();
  15. </script>
  16. <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  17. <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>