fix disqus comment disappear
parent
83f8917160
commit
b762f62c99
|
@ -2,14 +2,11 @@
|
|||
<% if (config.disqus_shortname){ %>
|
||||
<script>
|
||||
var disqus_shortname = '<%= config.disqus_shortname %>';
|
||||
<% if (page.permalink){ %>
|
||||
var disqus_url = '<%= page.permalink %>';
|
||||
<% } %>
|
||||
(function(){
|
||||
var dsq = document.createElement('script');
|
||||
dsq.type = 'text/javascript';
|
||||
dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/<% if (page.comments) { %>embed.js<% } else { %>count.js<% } %>';
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue