Merge pull request #184 from Treri/master

add duoshuo comment provider for chinese users

> Isolated. New comment provider. Low risk. Merging.
This commit is contained in:
Joseph Hall (groundh0g) 2015-05-25 06:55:55 -05:00
commit a2700bb7e5
3 changed files with 18 additions and 0 deletions

View file

@ -92,6 +92,8 @@ JB :
num_posts: 5 num_posts: 5
width: 580 width: 580
colorscheme: light colorscheme: light
duoshuo :
short_name : jekyllbootstrap
# Settings for analytics helper # Settings for analytics helper
# Set 'provider' to the analytics provider you want to use. # Set 'provider' to the analytics provider you want to use.

View file

@ -9,6 +9,8 @@
{% include JB/comments-providers/intensedebate %} {% include JB/comments-providers/intensedebate %}
{% when "facebook" %} {% when "facebook" %}
{% include JB/comments-providers/facebook %} {% include JB/comments-providers/facebook %}
{% when "duoshuo" %}
{% include JB/comments-providers/duoshuo %}
{% when "custom" %} {% when "custom" %}
{% include custom/comments %} {% include custom/comments %}
{% endcase %} {% endcase %}

View file

@ -0,0 +1,14 @@
<!-- Duoshuo Comment BEGIN -->
<div class="ds-thread"{% if page.wordpress_id %} data-thread-key="{{page.wordpress_id}}"{% endif %}></div>
<script type="text/javascript">
var duoshuoQuery = {short_name:'{{ site.JB.comments.duoshuo.short_name }}'};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = 'http://static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- Duoshuo Comment END -->