We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 多说在 Pages(不同页面) 中评论重复
我之前修改过多说文章 key,Yilia 用户可以用下面代码,保留原评论的同时 修复 bug。
把 /yelee/layout/_partial/article.ejs 下的这段代码删掉:
/yelee/layout/_partial/article.ejs
- <% if (!index && theme.duoshuo && post.comments){ %> - <%- partial('post/duoshuo', { - key: post.path, - title: post.title, - url: config.url+url_for(post.path) - }) %> - <% } %>
用下面这段代码替换:
<% if (!index && theme.duoshuo && post.comments){ %> <% if (is_post()){ %> <%- partial('post/duoshuo', { key: post.slug, title: post.title, url: config.url+url_for(post.path) }) %> <% } else {%> <%- partial('post/duoshuo', { key: post.path, title: post.title, url: config.url+url_for(post.path) }) %> <% } %> <% } %>
The text was updated successfully, but these errors were encountered:
Merge pull request #1 from cntanglijun/ryuu
2e7c683
首页随机动画效果
保留使用 Yilia 主题时的多说用户评论
1afe079
MOxFIVE/hexo-theme-yelee#1
No branches or pull requests
fix: 多说在 Pages(不同页面) 中评论重复
我之前修改过多说文章 key,Yilia 用户可以用下面代码,保留原评论的同时 修复
bug。
把
/yelee/layout/_partial/article.ejs
下的这段代码删掉:用下面这段代码替换:
The text was updated successfully, but these errors were encountered: