Valine 诞生于2017年8月7日,是一款基于LeanCloud的快速、简洁且高效的无后端评论系统。
理论上支持但不限于静态博客,目前已有Hexo、Jekyll、Typecho、Hugo、Ghost 等博客程序在使用Valine。
特性:
- 快速
- 安全
- Emoji 😉
- 无后端实现
- MarkDown 全语法支持
- 轻量易用(~15kb gzipped)
- 文章阅读量统计
使用之前需要先到leanCloud注册.
LeanCloud官网:https://www.leancloud.cn/
只需要用户名,邮箱,和手机号,注册后获得一个获取APP ID 和 APP Key:
应用创建好以后,进入刚刚创建的应用,选择左下角的设置>应用Key,然后就能看到你的APP ID和APP Key了:
在hexo 主题中开启即可。
358 # The configuration of the Valine comment module is not activated by default.
359 # To use it, activate the configuration item and set appId and appKey.
360 # Valine 评论模块的配置,默认为不激活,如要使用,就请激活该配置项,并设置 appId 和 appKey.
361 valine:
362 enable: true
363 appId: xxxx
364 appKey: xxx
365 notify: false
366 verify: false
367 visitor: true
368 avatar: 'mm' # Gravatar style : mm/identicon/monsterid/wavatar/retro/hide
369 pageSize: 10
370 placeholder: 'just go go' # Comment Box placeholder
371 background: /medias/comment_bg.png