开启Valine还是很方便的,用的leancloud国际版,建了两个class 一个是Comment 一个是Counter,所有人都访问就可以

butterfly主题配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
valine:
appId: xxxxxxxxxxx # leancloud application app id
appKey: xxxxxxxxxxxxx # leancloud application app key
pageSize: 10 # comment list page size
avatar: monsterid # gravatar style https://valine.js.org/#/avatar
notify: true
lang: en # i18n: zh-CN/zh-TW/en/ja
placeholder: Please leave your footprints # valine comment input placeholder (like: Please leave your footprints)
guest_info: nick,mail,link # valine comment header info (nick/mail/link)
recordIP: false # Record reviewer IP
serverURLs: https://xxxxxx.api.lncldglobal.com # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in)
bg: # valine background
emojiCDN: # emoji CDN
enableQQ: true # enable the Nickname box to automatically get QQ Nickname and QQ Avatar
requiredFields: nick,mail # required fields (nick/mail)
visitor: true # Article reading statistic
comment_count: true # If false, comment count will only be displayed in post page, not in home page
option:


serverURLs: https://xxxxxxxx.api.lncldglobal.com 这里记得要改成你的存储链接,默认的leancloud国际版域名已经过期了 所以这里要改成 你自己的文件服务器的访问地址。

最后别忘了开启评论

1
2
3
4
5
6
7
8
9
10
11
12
comments:
# Up to two comments system, the first will be shown as default
# Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo
use:
- Valine
# - Disqus
text: true # Display the comment name next to the button
# lazyload: The comment system will be load when comment element enters the browser's viewport.
# If you set it to true, the comment count will be invalid
lazyload: false
count: true # Display comment count in post's top_img
card_post_count: false # Display comment count in Home Page

有些邮箱提醒,valine-admin等等网上一大把。
最后记得hexo clean 再g 再d 不让容易出问题。