flex/templates/partial/duoshuo.html

21 lines
802 B
HTML
Raw Normal View History

2016-11-30 10:11:35 +01:00
{% if DUOSHUO_SITENAME %}
2017-04-22 08:41:39 +02:00
<!-- duoshuo -->
2016-11-30 10:11:35 +01:00
<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 }}'};
2017-04-22 08:41:39 +02:00
(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>
<noscript>
{{ _('Please enable JavaScript to view comments.') }}
</noscript>
<!-- End duoshuo -->
{% endif %}