mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
31 lines
822 B
JavaScript
31 lines
822 B
JavaScript
// eslint-disable-next-line @next/next/no-document-import-in-page
|
|
import Document, { Html, Head, Main, NextScript } from 'next/document'
|
|
import BLOG from '@/blog.config'
|
|
import CommonScript from '@/components/CommonScript'
|
|
|
|
class MyDocument extends Document {
|
|
static async getInitialProps (ctx) {
|
|
const initialProps = await Document.getInitialProps(ctx)
|
|
return { ...initialProps }
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<Html lang={BLOG.lang}>
|
|
<Head>
|
|
<link rel='icon' href='/favicon.ico' />
|
|
<link rel='icon' href='/favicon.svg' type='image/svg+xml' />
|
|
<CommonScript />
|
|
</Head>
|
|
|
|
<body className={`${BLOG.font} bg-day dark:bg-night duration-200`}>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default MyDocument
|