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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user