Twikoo配置

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

云函数部署

参考 Twikoo文档-云函数部署 选择一种你喜欢的部署方式

注意:vercel需要自定义域名, vercel.app 无法在中国大陆访问

你只需要把获取到的 环境 ID (envId) (参考文档,不同部署方式略有不同)填写到配置上去就行

主题配置

配置 use:envId:

_config.solitude.yml
# 大约在789和818行
# --------------------------- start ---------------------------
# Comment
# 评论
comment:
  # Which commenting system to use(e.g. waline or waline,twikoo)
  # 使用哪个评论系统(例如: waline or waline,twikoo)
  use: twikoo # 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.

···

twikoo: # https://twikoo.js.org/
  envId: https://twikoo-comment.holyfox.net/ # url: https://twikoo.sondy.top/
  region: # Environment locale, default is ap-shanghai, Tencent cloud environment fill ap-shanghai or ap-guangzhou; Vercel environment do not fill the.
  style: true # Use custom styles when turned on
  accessToken: # AccessToken
  option: # twikoo option
# --------------------------- end ---------------------------