aboutsummaryrefslogtreecommitdiffstats
path: root/Peli-Kiera/templates/disqus_script.html
blob: 5aafa1713911efc4178c85ad3cf35f894b06684f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% if DISQUS_SITENAME %}
    <div class="comments">
        <h2>Comments !</h2>
        <div id="disqus_thread"></div>
        <script>
            var disqus_config = function () {
                this.page.url = "{{ SITEURL }}/{{ article.url }}";
                this.page.identifier = "{{ article.slug }}";
                this.page.title = "{{ article.title }}";
            };
            (function () {
                var d = document,
                    s = d.createElement('script');
                s.src = 'https://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
                s.setAttribute('data-timestamp', +new Date());
                (d.head || d.body).appendChild(s);
            })();
        </script>
        <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments
            powered by
            Disqus.</a></noscript>
    </div>
{% endif %}