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:
commit
a2700bb7e5
3 changed files with 18 additions and 0 deletions
|
@ -92,6 +92,8 @@ JB :
|
|||
num_posts: 5
|
||||
width: 580
|
||||
colorscheme: light
|
||||
duoshuo :
|
||||
short_name : jekyllbootstrap
|
||||
|
||||
# Settings for analytics helper
|
||||
# Set 'provider' to the analytics provider you want to use.
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
{% include JB/comments-providers/intensedebate %}
|
||||
{% when "facebook" %}
|
||||
{% include JB/comments-providers/facebook %}
|
||||
{% when "duoshuo" %}
|
||||
{% include JB/comments-providers/duoshuo %}
|
||||
{% when "custom" %}
|
||||
{% include custom/comments %}
|
||||
{% endcase %}
|
||||
|
|
14
_includes/JB/comments-providers/duoshuo
Normal file
14
_includes/JB/comments-providers/duoshuo
Normal 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 -->
|
Loading…
Add table
Reference in a new issue