15 lines
No EOL
643 B
HTML
15 lines
No EOL
643 B
HTML
{% if DUOSHUO_SITENAME %}
|
|
<div class="ds-thread" data-thread-key="{{ article.slug }}" data-title="{{ article.title }}" data-url="{{ SITEURL }}/{{ article.url }}"></div>
|
|
<script type="text/javascript">
|
|
|
|
var duoshuoQuery = {short_name:'{{ DUOSHUO_SITENAME }}'};
|
|
(function() {
|
|
var ds = document.createElement('script');
|
|
ds.type = 'text/javascript';ds.async = true;
|
|
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
|
|
ds.charset = 'UTF-8';
|
|
(document.getElementsByTagName('head')[0]
|
|
|| document.getElementsByTagName('body')[0]).appendChild(ds);
|
|
})();
|
|
</script>
|
|
{% endif %} |