Twikoo Configuration

Learn how to configure Twikoo comment for the Solitude theme.

Cloud Function Deployment

Refer to Twikoo Documentation - Cloud Function Deployment and choose your preferred deployment method.

After deployment, simply copy the obtained Environment ID (envId) (reference the documentation as this varies by deployment method) and add it to your configuration.

Theme Configuration

Configure use: and envId: in your theme settings:

_config.solitude.yml
# Approximately at lines 789 and 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 ---------------------------