blob: 9da7440065d75f421cde81a9d731bb8d4b65c7ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{{ if .shortname }}
{{ if (not .index) }}
<script type="text/javascript">
var disqus_config = function () {
this.page.url = '{{ .post.Permalink }}';
this.page.identifier = '{{ .post.Permalink }}';
};
(function() {
var d = document, s = d.createElement('script');
s.src = '//{{ .shortname }}.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
{{ else }}
<script id="dsq-count-scr" src="//{{ .shortname }}.disqus.com/count.js" async></script>
{{ end }}
{{ end }}
|