summaryrefslogtreecommitdiff
path: root/src/app/layout.tsx
diff options
context:
space:
mode:
authorBertrand Yuan <bert.yuan@outlook.com>2025-12-16 00:25:04 +0800
committerGitHub <noreply@github.com>2025-12-16 00:25:04 +0800
commit39c83fbb69ef06d2d56790d75abc254ba7e34394 (patch)
treedd006593448c3500bdcb414af3b4656f7a7683d4 /src/app/layout.tsx
parent48b07bc308a35734a6a7a305c8fdccbfa47de7d8 (diff)
parent785371bb3eccca455e5ce5fccbe9b6e3752a03f6 (diff)
Merge pull request #1 from bertyuan/feat-introduce-payloadv1.0
Feat: introduce payload
Diffstat (limited to 'src/app/layout.tsx')
-rw-r--r--src/app/layout.tsx52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
deleted file mode 100644
index c7d2aaf..0000000
--- a/src/app/layout.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import { createMetadata } from '@/lib/metadata';
-import type { Viewport } from 'next';
-import { Geist, Geist_Mono } from 'next/font/google';
-import type { ReactNode } from 'react';
-import '@/styles/globals.css';
-import 'katex/dist/katex.css';
-import { baseUrl } from '@/lib/constants';
-import { Body } from './layout.client';
-import { description as homeDescription } from './layout.config';
-import { Provider } from './provider';
-
-const geistSans = Geist({
- variable: '--font-geist-sans',
- subsets: ['latin'],
-});
-
-const geistMono = Geist_Mono({
- variable: '--font-geist-mono',
- subsets: ['latin'],
-});
-
-export const metadata = createMetadata({
- title: {
- template: '%s | Blog',
- default: 'Blog',
- },
- description: homeDescription,
- metadataBase: baseUrl,
-});
-
-export const viewport: Viewport = {
- themeColor: [
- { media: '(prefers-color-scheme: dark)', color: '#0A0A0A' },
- { media: '(prefers-color-scheme: light)', color: '#fff' },
- ],
-};
-
-const RootLayout = ({ children }: { children: ReactNode }) => {
- return (
- <html
- lang='en'
- className={`${geistSans.variable} ${geistMono.variable} antialiased`}
- suppressHydrationWarning
- >
- <Body>
- <Provider>{children}</Provider>
- </Body>
- </html>
- );
-};
-
-export default RootLayout;