Hexo博客NexT主题美化之评论系统

前言

更多效果展示,请访问我的博客 https://kangmingxian.github.io/


效果图:

 
image

Valine 诞生于2017年8月7日,是一款基于Leancloud的快速、简洁且高效的无后端评论系统。


教程:

  1. 登录 Leancloud 官网,注册之后创建一个应用,选择【设置】->【应用Key】记下你的APP ID和APP Key,如下:

     
    image
  2. 编辑 主题配置文件,搜索 Valine,填入appid 和 appkey,如下:

  3. valine:
      enable: true # When enable is set to be true, leancloud_visitors is recommended to be closed for the re-initialization problem within different leancloud adk version.
      appid: # your app id
      appkey: # your app key
      notify: true # 评论回复邮件提醒, See: https://github.com/xCss/Valine/wiki
      verify: false # 验证码服务
      placeholder: 留言区 # 评论框占位提示符
      avatar: mm # 头像配置
      guest_info: nick,mail,link # 回复要填写的信息
      pageSize: 10 # 评论列表分页,每页条数
      visitor: false # 文章访问量统计 
      comment_count: true # if false, comment count will only be displayed in post page, not in home page
  1. 可选操作: 在【Leancloud】 -> 【设置】 -> 【安全中心】 -> 【Web 安全域名】把你的域名加进去,可防止数据被篡改。



作者:潘高PG
链接:https://www.jianshu.com/p/83cf3e358c8e
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

猜你喜欢

转载自www.cnblogs.com/kmxojer/p/12152774.html
今日推荐