diff --git a/layout/_meta/counter.ejs b/layout/_meta/counter.ejs index 176c6fba3..a8702d84c 100644 --- a/layout/_meta/counter.ejs +++ b/layout/_meta/counter.ejs @@ -12,9 +12,19 @@ if(commentPath) path = commentPath; path = path.replaceAll('/index.html', '/').replaceAll('.html', '') + + let checkComment = false; + if (theme.analytics && theme.analytics.leancloud && theme.analytics.leancloud.app_id + || theme.analytics.busuanzi + || theme.comments.service=='waline' && theme.comments.waline.pageview + || theme.comments.service=='twikoo' + || theme.comments.service=='discuss' + || theme.comments.service=='artalk') { + checkComment = !checkComment; + } %> -<% if (!!page.comments) { %> +<% if (!!page.comments && checkComment) { %>

diff --git a/layout/_plugins/rightmenus/layout.ejs b/layout/_plugins/rightmenus/layout.ejs index 59a2a05b0..40dddb919 100644 --- a/layout/_plugins/rightmenus/layout.ejs +++ b/layout/_plugins/rightmenus/layout.ejs @@ -82,7 +82,7 @@ <% rightMenu.rederFunction = item => { %> <% if (!!item && !!item['event'] && item['group'] !== 'navigation') { %> <% if (rightMenu.defaultEvent.some(value => { return value === item['event'] })) { %> - + //RightMenusFunction['<%- item.id %>'] = (fun) => {fun()} <% } else if (item['group'] === 'seletctText') { %> RightMenusFunction['<%- item.id %>'] = (__text__) => {<%- item.event %>} <% } else if (item['group'] === 'elementCheck' || item['group'] === 'elementImage') { %>