Valine配置

了解如何配置 Solitude 主题的 Valine 评论。

配置后端

参考 Valine文档 去配置你的服务端并填写对应配置。

主题配置

配置对应所需配置即可

_config.solitude.yml
# 大约在789和831行
# --------------------------- start ---------------------------
# Comment
# 评论
comment:
  # Which commenting system to use(e.g. waline or waline,twikoo)
  # 使用哪个评论系统(例如: waline or waline,twikoo)
  use: valine # waline, twikoo, valine, artalk, giscus # Up to two comment systems can be turned on at the same time
  # Whether to display the hot comment switch.

···

valine:
  appId: # leancloud application app id
  appKey: # leancloud application app key
  serverURLs: # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in)
  avatar: # https://valine.js.org/avatar.html
  visitor: false
  style: true # Use custom styles when turned on
  option: # options list