From b762f62c99bce51daca9a833b0fd4b353949d9e6 Mon Sep 17 00:00:00 2001 From: everyx Date: Sun, 22 Mar 2015 17:24:43 +0800 Subject: [PATCH 1/2] fix disqus comment disappear --- layout/_partial/after-footer.ejs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/layout/_partial/after-footer.ejs b/layout/_partial/after-footer.ejs index e20a2b1..90044d9 100644 --- a/layout/_partial/after-footer.ejs +++ b/layout/_partial/after-footer.ejs @@ -2,14 +2,11 @@ <% if (config.disqus_shortname){ %> From 6ac924508f5511f8377988f40325e4f2950cc241 Mon Sep 17 00:00:00 2001 From: everyx Date: Sun, 22 Mar 2015 17:36:01 +0800 Subject: [PATCH 2/2] should show comment count --- layout/_partial/after-footer.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/_partial/after-footer.ejs b/layout/_partial/after-footer.ejs index 90044d9..b91fd31 100644 --- a/layout/_partial/after-footer.ejs +++ b/layout/_partial/after-footer.ejs @@ -6,7 +6,7 @@ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; - dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; + dsq.src = '//' + disqus_shortname + '.disqus.com/<% if (page.comments) { %>embed.js<% } else { %>count.js<% } %>'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();