1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2024-11-25 04:09:02 +00:00
pelican-red/templates/_disqus.html

19 lines
1.1 KiB
HTML
Raw Normal View History

{% set item = article|default(page) %}
<div id="disqus_thread">
<script type="text/javascript">
var disqus_shortname = '{{DISQUS_SN}}'; // required: replace example with your forum shortname
var disqus_identifier = '{{ item.title }}{{ '-'+item.date.isoformat() if item.date else ''}}';
var disqus_title = '{{ item.title }}';
var disqus_url = '{{ SITEURL }}/{{ item.url }}';
// var disques_category_id =''; // disqus catagory id number from disqus
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>