|
1 {% if DISQUS_SITENAME %} |
|
2 <hr> |
|
3 <div id="disqus_thread"></div> |
|
4 <script type="text/javascript"> |
|
5 /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ |
|
6 var disqus_shortname = "{{ DISQUS_SITENAME }}"; // required: replace example with your forum shortname |
|
7 var disqus_identifier = "{{ article.title|string|replace(' ',' ')|replace(' ', '-' )|striptags|lower|e }}"; |
|
8 var disqus_url = "{{ SITEURL }}/{{ article.url }}"; |
|
9 var disqus_title = "{{ article.title|replace(' ',' ')|striptags|e }}"; |
|
10 /* * * DON'T EDIT BELOW THIS LINE * * */ |
|
11 (function() { |
|
12 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; |
|
13 dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js'; |
|
14 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); |
|
15 })(); |
|
16 </script> |
|
17 <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> |
|
18 <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> |
|
19 {% endif %} |