aboutsummaryrefslogtreecommitdiff
path: root/source/_includes/disqus.html
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-05-04 14:55:10 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-05-04 14:55:10 -0700
commit301679861a2440a10c9eac746cec86459f445ef9 (patch)
tree5aad22ead01cf0da226623f603f33867896c0fea /source/_includes/disqus.html
parentd0a07c64afba47bbe8bfb56ba9893296a73fc7db (diff)
downloadmy_new_personal_website-301679861a2440a10c9eac746cec86459f445ef9.tar.xz
my_new_personal_website-301679861a2440a10c9eac746cec86459f445ef9.zip
remove all Octopress stuff
Diffstat (limited to 'source/_includes/disqus.html')
-rw-r--r--source/_includes/disqus.html21
1 files changed, 0 insertions, 21 deletions
diff --git a/source/_includes/disqus.html b/source/_includes/disqus.html
deleted file mode 100644
index 49c6a29c..00000000
--- 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 = '//' + disqus_shortname + '.disqus.com/' + disqus_script;
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
- }());
-</script>
-{% endif %}