feat: implement giscus comment

This commit is contained in:
shinya 2025-04-07 00:16:11 +08:00
parent 2dd5410300
commit d1df76e2c2
No known key found for this signature in database
GPG key ID: A27DBCC544F50A01
8 changed files with 338 additions and 11 deletions

11
src/types/index.d.ts vendored
View file

@ -39,11 +39,22 @@ export interface ThemeConfig {
comment: {
enabled: boolean
provider?: 'waline' | 'giscus'
waline?: {
serverURL?: string
emoji?: string[]
search?: boolean
imageUploader?: boolean
},
giscus?: {
repo: string
repoID: string
category: string
categoryID: string
mapping: 'pathname' | 'url' | 'title'
inputPosition: 'top' | 'bottom'
lang: Exclude<typeof supportedLangs[number], 'zh-CN'>,
loading: 'lazy' | 'embed'
}
}