This commit is contained in:
eric
2026-03-26 03:15:35 -05:00
parent 340d363196
commit 1a6f2511c4
3 changed files with 70 additions and 53 deletions

View File

@@ -1,13 +1,8 @@
import type { Metadata } from "next";
import { GeistSans } from "geist/font/sans";
import { GeistMono } from "geist/font/mono";
import "./globals.css";
import { ThemeProvider } from "./providers/ThemeProvider";
import { themeInitScript } from "./theme-init";
const geistSans = GeistSans;
const geistMono = GeistMono;
export const metadata: Metadata = {
title: "异度星球",
description: "数字游民社群",
@@ -20,9 +15,7 @@ export default function RootLayout({
}>) {
return (
<html lang="zh-CN" suppressHydrationWarning>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<body className="antialiased">
<script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
<ThemeProvider>{children}</ThemeProvider>
</body>