Debian Codegraph @

_includes/disqus_comments.html

raw
1 {%- if page.comments != false and jekyll.environment == "production" -%}
2
3 <div id="disqus_thread"></div>
4 <script>
5 var disqus_config = function () {
6 this.page.url = '{{ page.url | absolute_url }}';
7 this.page.identifier = '{{ page.url | absolute_url }}';
8 };
9
10 (function() {
11 var d = document, s = d.createElement('script');
12
13 s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
14
15 s.setAttribute('data-timestamp', +new Date());
16 (d.head || d.body).appendChild(s);
17 })();
18 </script>
19 <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20 {%- endif -%}