Update disqus fragment

Per Pelican simple theme and Disqus official documentation:
- https://github.com/getpelican/pelican/blob/master/pelican/themes/notmyidea/templates/disqus_script.html
- https://disqus.com/admin/universalcode/
This commit is contained in:
Arnaud Rebillout
2020-07-26 14:46:57 +07:00
parent 8a20068fe6
commit 6fe74116dc
+4 -3
View File
@@ -3,9 +3,10 @@
<script type="text/javascript">
var disqus_shortname = '{{ DISQUS_SITENAME }}';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
var d = document, s = d.createElement('script'); s.type = 'text/javascript'; s.async = true;
s.src = 'https://' + disqus_shortname + '.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" rel="nofollow">comments powered by Disqus.</a></noscript>