Build a beautiful and simple website in literally minutes. Demo at http://deanattali.com/beautiful-jekyll
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
815 B

9 years ago
9 years ago
  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 %}