Comments (8)
我不确定是不是你的主题版本号不对,网页源码看起来还像是老版本的代码:
- var GUEST = ['nick','mail','link'];
- var guest = 'nick';
- guest = guest.split(',').filter(item=>{
- return GUEST.indexOf(item)>-1;
- });
+ // meta some code
+ var meta = ['nick'];
new Valine({
el: '#comments' ,
verify: false,
notify: false,
appId: 'UsSNtXXXXXXXXXXXXXXXX',
appKey: 'J83xXXXXXXXXXXXXXX',
placeholder: '莫西莫西?',
avatar:'mm',
- guest_info:guest,
+ meta: meta,
pageSize: 10,
});
from valine.
抱歉,我昨天把博客回滚到老的NexT主题了,现在Deploy的是新版本的NexT了。
刚才又发现一个问题,就是我旧版的NexT的Valine插件显示的版本是V1.5.1的,新版的NexT的Valine插件显示的是V1.4.14的,不知道是不是插件版本的原因?以及我该如何调整使用的插件的版本?感谢您的回复!
from valine.
抱歉,我昨天把博客回滚到老的NexT主题了,现在Deploy的是新版本的NexT了。 刚才又发现一个问题,就是我旧版的NexT的Valine插件显示的版本是V1.5.1的,新版的NexT的Valine插件显示的是V1.4.14的,不知道是不是插件版本的原因?以及我该如何调整使用的插件的版本?感谢您的回复!
看了下,新版hexo-next-valine 的版本确实是v1.4.14 , 将其更改为 https://fastly.jsdelivr.net/npm/[email protected]/dist/Valine.min.js 即可
from valine.
非常感谢,修改后Valine版本显示为V1.5.1了,但是依然无法得到评论数据,我推测是我_config.yml配置的问题。有关Valine的配置我都写在theme/next-reloaded/_config.yml文件里,除了上面提到的添加在文件末尾的Valine配置代码段外,还有另一段与评论有关的配置:
# Multiple Comment System Support
comments:
# Available values: tabs | buttons
style: tabs
# Choose a comment system to be displayed by default.
# Available values: disqus | disqusjs | changyan | livere | gitalk | utterances
active: valine
# Setting `true` means remembering the comment system selected by the visitor.
storage: true
# Lazyload all comment systems.
lazyload: false
# Modify texts or order for any naves, here are some examples.
nav:
#disqus:
# text: Load Disqus
# order: -1
#gitalk:
# order: -2
请问是我配置的过程有问题吗?谢谢!
from valine.
看着有点像是你的serverURLs
写错了,理论上这个值默认是空的,自定义的话应该是你在leancloud绑定的域名,而不是github.io
:
"serverURLs":"https://cyclohexatriene.github.io"
from valine.
您好,我将serverURLs
字段清空后重新运行了hexo clean
和hexo g
,但依然无法得到评论数据,meta
字段的配置也没有生效,或者说整个配置看起来只有placeholder
字段生效了。
我刚才还尝试了把theme
文件夹下原名为next-reloaded
的文件夹重命名为next
,问题依然存在。
现在Deploy的是清除serverURLs
字段后的版本,劳烦您再帮我找一下出现问题的原因。谢谢!
valine:
enable: true
appId: /* My appid */
appKey: /* My appkey */
#serverURLs: # When the custom domain name is enabled, fill it in here
placeholder: 莫西莫西? # comment box placeholder
avatar: mm # gravatar style
meta: [nick] # Custom comment header
pageSize: 10 # pagination size
visitor: false # leancloud-counter-security is not supported for now. When visitor is set to be true, appid and appkey are recommended to be the same as leancloud_visitors' for counter compatibility. Article reading statistic https://valine.js.org/visitor.html
comment_count: false # If false, comment count will only be displayed in post page, not in home page
recordIP: true # Whether to record the commenter IP
from valine.
我这边显示Code 401: 未经授权的操作,请检查你的AppId和AppKey.
,其他配置要看主题源文件才能知道是什么问题了。
from valine.
好的,感谢您的耐心回复,我再去研究一下!
from valine.
Related Issues (20)
- 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
- 评论在chrome edge等软件不显示模块,只在safari正常显示,以前正常,求大佬解决,非常感谢!小白一个,自己研究了很久,试验了很多办法未解决。
- 阅读量为0
- 我填写了placeholder配置,但还是默认的Just Go Go
- Valine有事件回调机制吗?想在提交评论成功能触发回调,做些其他处理 HOT 1
- 无法拉取 QQ 昵称,只显示 QQ 号和 QQ 头像
- LeanCloud关闭华东节点 HOT 4
- valine提交web无响应 HOT 5
- 被刷评论 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.