mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-04 23:16:53 +00:00
一些微调
This commit is contained in:
@@ -15,11 +15,9 @@ class MyDocument extends Document {
|
||||
<Head>
|
||||
<link rel='icon' href='/favicon.ico' />
|
||||
<CommonScript />
|
||||
{console.log(this.renderCSS())}
|
||||
{this.renderCSS()}
|
||||
</Head>
|
||||
<body
|
||||
className={'tracking-wider subpixel-antialiased bg-day dark:bg-night'}
|
||||
className={'bg-day dark:bg-night'}
|
||||
>
|
||||
<Main />
|
||||
<NextScript />
|
||||
@@ -27,16 +25,6 @@ class MyDocument extends Document {
|
||||
</Html>
|
||||
)
|
||||
}
|
||||
|
||||
renderCSS() {
|
||||
if (BLOG.CSS_LIST && BLOG.CSS_LIST.length > 0) {
|
||||
return BLOG.CSS_LIST.map((item, index) => {
|
||||
return (
|
||||
<link rel="stylesheet" key={index + 'stylesheet'} href={item}></link>
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default MyDocument
|
||||
|
||||
Reference in New Issue
Block a user