forked from tangly1024/NotionNext
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d7a434
commit 93be76e
Showing
4 changed files
with
64 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* eslint-disable react/no-unknown-property */ | ||
|
||
import { siteConfig } from '@/lib/config' | ||
|
||
/** | ||
* 这里的css样式对全局生效 | ||
* 主题客制化css | ||
* @returns | ||
*/ | ||
const GlobalStyle = () => { | ||
// 从NotionConfig中读取样式 | ||
const GLOBAL_CSS = siteConfig('GLOBAL_CSS') | ||
return (<style jsx global>{` | ||
${GLOBAL_CSS} | ||
`}</style>) | ||
} | ||
|
||
export { GlobalStyle } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters