nimbus-site/themes/navy/layout/partial/comment.swig

18 lines
651 B
Plaintext

{% if page.comments && config.disqus_shortname %}
<section id="comments">
<div id="disqus_thread"></div>
</section>
<script>
var disqus_shortname = '{{ config.disqus_shortname }}';
var disqus_url = '{{ url }}';
var disqus_title = {{ JSON.stringify(page.title) }};
var disqus_config = function(){
this.language = '{{ disqus_lang() }}';
};
(function(){
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'https://go.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
{% endif %}