mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
* remove nprogress * fix loading issue Add absolute import path aliases * optimization imports Add fallback on navbar image Fix post images zoom wrapper as button Fix module.css import error * add router prefetch to post page Add paging prefetch * add post comment component
20 lines
501 B
TypeScript
20 lines
501 B
TypeScript
import { ColorModeScript } from '@chakra-ui/react';
|
|
import NextDocument, { Html, Head, Main, NextScript } from 'next/document';
|
|
import theme from 'lib/theme';
|
|
|
|
export default class Document extends NextDocument {
|
|
render() {
|
|
return (
|
|
<Html lang="en">
|
|
<Head />
|
|
<body>
|
|
{/* 👇 Here's the script */}
|
|
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
);
|
|
}
|
|
}
|