Comments (4)
已解决。
检查了一遍逻辑,我在valine.swig里面把page.comments的判断加上就好了。
from valine.
我配置了之后,不显示数量,也报这个错。请问具体怎么加?主题配置文件里 并没有这个变量 page.comments
from valine.
@xiaweiss 评论数量只在评论区显示,在主页和文章页页头区域本来就不显示,估计是没有这个功能。
关于这个报错的解决方法:
打开文件themes/next/layout/_third-party/comments/valine.swig。
第1行{% if theme.valine.enable and theme.valine.appid and theme.valine.appkey %}
添加page.comments判断条件,改为{% if page.comments and theme.valine.enable and theme.valine.appid and theme.valine.appkey %}
。
第4行,插件版本更新为1.1.6。
from valine.
@codefine next主题中首页报The target element was not found.
是我判断不严谨造成的。后面会提交pr修复。感谢反馈
@xiaweiss 针对首页评论数量的展示,目前正在寻找解决方案,如果解决了会及时通知大家的~
感谢关注。
from valine.
Related Issues (20)
- 功能需求
- vitepress 构建报错 window is not defined HOT 2
- 在 Hexo-Theme-Fluid 中无法使用 Valine
- 前段时间valine被攻击留下的信息,有谁能看明白这是在攻击什么? HOT 2
- 使用语雀+hexo自动推送文档时偶先评论消失问题
- hexo配置好valine输入评论没反应 HOT 2
- Valine Server
- NexT版本更新后无法使用的问题 HOT 8
- Valine从固定的CDN导入av-min.js导致加载缓慢 HOT 3
- Win10也显示Win11 HOT 3
- 哥我用的hexo frame框架,这个里面config配置好是1.4.16版本的valine HOT 2
- Windows 10 系统版本识别错误 HOT 1
- 请问一下qq头像和昵称是怎么触发的 HOT 3
- leancloud国际版无法发布评论 HOT 6
- 邮箱格式校验问题
- 无法正常发送评论 HOT 10
- 請問可以新增如何在Ghost裡面使用的教學嗎?
- valine引入的unpkg js文件出现520错误 HOT 1
- Valine请求LeanCloud国际版api跨域问题 HOT 1
- 被恶意刷评论 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from valine.