From 02ae938c238c9d18448d17a8ec92c0edd8c17463 Mon Sep 17 00:00:00 2001 From: Bertrand Yuan Date: Tue, 16 Dec 2025 00:12:49 +0800 Subject: feat(back-end): introduce payload Payload is the next.js Headless CMS and App Framework, I would like to pick it up and modify it as it is MIT licensed. Many features in Payload is not applicable for our project. So, I modify it so that it is light and clear. --- src/app/layout.tsx | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/app/layout.tsx (limited to 'src/app/layout.tsx') 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 ( - - - {children} - - - ); -}; - -export default RootLayout; -- cgit v1.2.3