Files
blog-nextjs/app/layout.tsx
2025-11-17 15:28:20 +08:00

31 lines
728 B
TypeScript

import '../styles/globals.css';
import type { Metadata } from 'next';
import { siteConfig } from '@/lib/config';
import { LayoutShell } from '@/components/layout-shell';
import { ThemeProvider } from 'next-themes';
export const metadata: Metadata = {
title: {
default: siteConfig.title,
template: `%s | ${siteConfig.title}`
},
description: siteConfig.description
};
export default function RootLayout({
children
}: {
children: React.ReactNode;
}) {
return (
<html lang="zh-Hant" suppressHydrationWarning>
<body>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<LayoutShell>{children}</LayoutShell>
</ThemeProvider>
</body>
</html>
);
}