summaryrefslogtreecommitdiffstats
path: root/layouts/partials/comment-disqus.html
blob: 44772262a7a8762776063668b404144ae0cffaab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div id="post-comment">
    <div id="disqus_thread"></div>
    <script>
        var disqus_config = function () {
            this.page.url = "{{ .Permalink }}";
            this.page.identifier = "{{ .RelPermalink }}";
        };
        (function () {
            var d = document,
                s = d.createElement('script');
            s.src = 'https://{{ .Site.Params.disqusShortname }}.disqus.com/embed.js';
            s.setAttribute('data-timestamp', +new Date());
            (d.head || d.body).appendChild(s);
        })();
    </script>
</div>