diff options
author | SkyArrow <tommy351@gmail.com> | 2012-01-24 14:54:06 +0100 |
---|---|---|
committer | SkyArrow <tommy351@gmail.com> | 2012-01-24 14:54:06 +0100 |
commit | 2d0d5648dfabe4f178736ba512efc5b7e3b3cd94 (patch) | |
tree | 60deebd130eeb65cae643ad72a7342105f68fd05 /source/_includes/disqus.html | |
parent | 1c574d24b7fdd482499fa9553c19342b6a4d391e (diff) | |
download | octopress-theme-jeyzu-2d0d5648dfabe4f178736ba512efc5b7e3b3cd94.zip octopress-theme-jeyzu-2d0d5648dfabe4f178736ba512efc5b7e3b3cd94.tar.gz |
layout
Diffstat (limited to 'source/_includes/disqus.html')
-rw-r--r-- | source/_includes/disqus.html | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/source/_includes/disqus.html b/source/_includes/disqus.html deleted file mode 100644 index eb30877..0000000 --- a/source/_includes/disqus.html +++ /dev/null @@ -1,21 +0,0 @@ -{% comment %} Load script if disquss comments are enabled and `page.comments` is either empty (index) or set to true {% endcomment %} -{% if site.disqus_short_name and page.comments != false %} -<script type="text/javascript"> - var disqus_shortname = '{{ site.disqus_short_name }}'; - {% if page.comments == true %} - {% comment %} `page.comments` can be only be set to true on pages/posts, so we embed the comments here. {% endcomment %} - // var disqus_developer = 1; - var disqus_identifier = '{{ site.url }}{{ page.url }}'; - var disqus_url = '{{ site.url }}{{ page.url }}'; - var disqus_script = 'embed.js'; - {% else %} - {% comment %} As `page.comments` is empty, we must be on the index page. {% endcomment %} - var disqus_script = 'count.js'; - {% endif %} - (function () { - var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script; - (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); - }()); -</script> -{% endif %} |