mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-21 15:09:43 +00:00
GlobalJS,GlobalStyle
This commit is contained in:
20
components/GlobalStyle.js
Normal file
20
components/GlobalStyle.js
Normal file
@@ -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 }
|
||||
Reference in New Issue
Block a user