Skip to content

Commit

Permalink
fix(meta): counter
Browse files Browse the repository at this point in the history
  • Loading branch information
inkss committed Jun 29, 2022
1 parent 8cde195 commit 7470b7a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion layout/_meta/counter.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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) { %>
<div class="new-meta-item browse">
<a class='notlink'>
<p>
Expand Down
2 changes: 1 addition & 1 deletion layout/_plugins/rightmenus/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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()} -->
//RightMenusFunction['<%- item.id %>'] = (fun) => {fun()}
<% } else if (item['group'] === 'seletctText') { %>
RightMenusFunction['<%- item.id %>'] = (__text__) => {<%- item.event %>}
<% } else if (item['group'] === 'elementCheck' || item['group'] === 'elementImage') { %>
Expand Down

0 comments on commit 7470b7a

Please sign in to comment.