一些微调

This commit is contained in:
tangly1024.com
2023-03-23 08:34:28 +08:00
parent 992d9d1f07
commit 32d0a5b7a5
2 changed files with 2 additions and 14 deletions

View File

@@ -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