This theme supports comment functionality. Pass commentPlugin from the theme options as a configuration item.
commentPlugin
Three comment services are currently supported:
NOTE
If you do not need the comment feature, please ignore this option.
import { defineConfig } from 'vitepress-theme-niansi' export default defineConfig({ themeConfig: { commentPlugin: { provider: 'Waline', options: { serverURL: 'https://your-waline-server.com' } } } })
import { defineConfig } from 'vitepress-theme-niansi' export default defineConfig({ themeConfig: { commentPlugin: { provider: 'Giscus', options: { repo: 'your-github-repo', repoId: 'your-github-repo-id', category: 'your-github-discussion-category', categoryId: 'your-github-discussion-category-id' } } } })
import { defineConfig } from 'vitepress-theme-niansi' export default defineConfig({ themeConfig: { commentPlugin: { provider: 'Twikoo', options: { envId: 'your-twikoo-env-id' } } } })
This theme supports comment functionality. Pass
commentPluginfrom the theme options as a configuration item.Three comment services are currently supported:
NOTE
If you do not need the comment feature, please ignore this option.
Waline
2
3
4
5
6
7
8
9
10
11
12
Giscus
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Twikoo
2
3
4
5
6
7
8
9
10
11
12