mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 19:22:52 +02:00
style: optimize giscus styling
This commit is contained in:
parent
035a4c755e
commit
056c8bad96
4 changed files with 173 additions and 16 deletions
|
@ -46,6 +46,9 @@ const shouldRender = Boolean(repo && repoID && categoryID)
|
|||
return isDark
|
||||
? `${siteUrl}/vendors/giscus/theme-dark.css`
|
||||
: `${siteUrl}/vendors/giscus/theme-light.css`
|
||||
// For local development
|
||||
// ? `http://localhost:4321/vendors/giscus/theme-dark.css`
|
||||
// : `http://localhost:4321/vendors/giscus/theme-light.css`
|
||||
}
|
||||
|
||||
function setupGiscus() {
|
||||
|
|
|
@ -96,7 +96,7 @@ export const themeConfig: ThemeConfig = {
|
|||
categoryID: 'DIC_kwDOOy1K084CqwuZ',
|
||||
mapping: 'pathname',
|
||||
strict: '0',
|
||||
reactionsEnabled: '0',
|
||||
reactionsEnabled: '1',
|
||||
emitMetadata: '0',
|
||||
inputPosition: 'bottom',
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue