wikijs-fork/server/modules/comments/disqus/code.yml

16 lines
435 B
YAML
Raw Permalink Normal View History

2020-04-07 02:21:42 +00:00
main: |
<div id="disqus_thread"></div>
2020-05-17 02:46:05 +00:00
body: |
2020-04-07 02:21:42 +00:00
<script>
var disqus_config = function () {
2020-05-17 02:46:05 +00:00
this.page.url = '{{pageUrl}}';
this.page.identifier = '{{pageId}}';
2020-04-07 02:21:42 +00:00
};
(function() {
var d = document, s = d.createElement('script');
2020-05-17 02:46:05 +00:00
s.src = 'https://{{accountName}}.disqus.com/embed.js';
2020-04-07 02:21:42 +00:00
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>