mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 12:01:33 +02:00
feat: implement giscus comment
This commit is contained in:
parent
2dd5410300
commit
d1df76e2c2
8 changed files with 338 additions and 11 deletions
11
src/types/index.d.ts
vendored
11
src/types/index.d.ts
vendored
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue