English
A concise, safe and free comment system for static sites, based on Tencent Cloud Development.
npm i -D twikoo
Set provider: "Twikoo" and pass your server address to the envId option:
provider: "Twikoo"
envId
import { commentPlugin } from '@vuepress/plugin-comment' export default { plugins: [ commentPlugin({ provider: 'Twikoo', envId: 'https://twikoo.example.com', }), ], }
Deploy the backend according to the official documentation.
Tips
The plugin automatically sets lang (to zh-CN or en), path (the identifier of the page) and el.
lang
zh-CN
en
path
el
string
The Vercel address or the Tencent CloudBase environment ID.
See also: Deploy Backend.
'ap-shanghai'
The Tencent Cloud region.
You can use the defineTwikooConfig function to customize Twikoo:
defineTwikooConfig
import { defineTwikooConfig } from '@vuepress/plugin-comment/client' import { defineClientConfig } from 'vuepress/client' defineTwikooConfig({ // Twikoo config })
Twikoo
A concise, safe and free comment system for static sites, based on Tencent Cloud Development.
Usage
Set
provider: "Twikoo"and pass your server address to theenvIdoption:Deploy Backend
Deploy the backend according to the official documentation.
Tips
The plugin automatically sets
lang(tozh-CNoren),path(the identifier of the page) andel.Options
stringThe Vercel address or the Tencent CloudBase environment ID.
See also: Deploy Backend.
string'ap-shanghai'The Tencent Cloud region.
Client Config
You can use the
defineTwikooConfigfunction to customize Twikoo: