disqus.html 847 B

1234567891011121314151617
  1. {%- if site.disqus -%}
  2. <div class="comments">
  3. <div id="disqus_thread"></div>
  4. <script type="text/javascript">
  5. var disqus_shortname = '{{ site.disqus }}';
  6. /* ensure that pages with query string get the same discussion */
  7. var url_parts = window.location.href.split("?");
  8. var disqus_url = url_parts[0];
  9. (function() {
  10. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  11. dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
  12. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  13. })();
  14. </script>
  15. <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  16. </div>
  17. {%- endif -%}