Solitude Docs
集成服务评论系统

Waline 评论

将 Waline 配置为 Solitude 4 顶层评论服务。

_config.solitude.yml 中配置公共行为并选择服务:

comment:
  use: waline
  commentBarrage: false
  lazyload: true
  count: true
  sidebar: false
  pv: false
  avatar: https://gravatar.com/avatar

waline:
  envId: https://your-waline.example.com
  pageview: true
  option:

服务配置是顶层区块,不是 comment 的子项。envId 使用公开 Waline 服务地址,服务专属客户端选项放在 option 下。

页面 Front Matter 可使用 comment: false 单独关闭评论。请验证首次加载、反复 PJAX 导航、发表评论、明暗模式、支持时的计数显示,以及生产域名白名单。