style: optimize giscus styling

This commit is contained in:
radishzzz 2025-05-31 00:25:36 +01:00
parent 035a4c755e
commit 056c8bad96
4 changed files with 173 additions and 16 deletions

View file

@ -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() {

View file

@ -96,7 +96,7 @@ export const themeConfig: ThemeConfig = {
categoryID: 'DIC_kwDOOy1K084CqwuZ',
mapping: 'pathname',
strict: '0',
reactionsEnabled: '0',
reactionsEnabled: '1',
emitMetadata: '0',
inputPosition: 'bottom',
},