mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 18:06:38 -04:00
prevent fading into dark theme if we're immediately setting it on load
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import Document, { Html, Head, Main, NextScript } from "next/document";
|
||||
import classNames from "classnames";
|
||||
import * as config from "../lib/config";
|
||||
|
||||
import type { DocumentContext } from "next/document";
|
||||
@ -13,7 +14,7 @@ class MyDocument extends Document {
|
||||
return (
|
||||
<Html lang={config.siteLocale?.replace("_", "-")}>
|
||||
<Head />
|
||||
<body>
|
||||
<body className={classNames("page", "loading")}>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user