diff --git a/src/app/docs/[...categories]/page.jsx b/src/app/docs/[...categories]/page.jsx index c34d317..ec03894 100644 --- a/src/app/docs/[...categories]/page.jsx +++ b/src/app/docs/[...categories]/page.jsx @@ -3,7 +3,6 @@ import parse from 'html-react-parser'; import { REPOSITORY } from '@/constants/github'; import { DOCS } from '@/constants/path'; -import Article from '@/layouts/Article'; export async function generateStaticParams() { const paths = await fs.readdir(DOCS, { @@ -24,7 +23,7 @@ export default async function Page({ params }) { 'utf-8', ); - return
{await markdownToJsx(markdown)}
; + return <>{await markdownToJsx(markdown)}; } async function markdownToHtml(markdown) { diff --git a/src/app/layout.jsx b/src/app/layout.jsx index 11dbdd1..d4ff0e2 100644 --- a/src/app/layout.jsx +++ b/src/app/layout.jsx @@ -1,17 +1,38 @@ import { SpeedInsights } from '@vercel/speed-insights/next'; -import Aside from '@/layouts/Aside'; -import Body from '@/layouts/Body'; -import Header from '@/layouts/Header'; -import Main from '@/layouts/Main'; +import Article from '@/components/layouts/Article'; +import Aside from '@/components/layouts/Aside'; +import Body from '@/components/layouts/Body'; +import Header from '@/components/layouts/Header'; +import Main from '@/components/layouts/Main'; -export default function Layout({ children }) { +import Categories from '@/components/aside/Categories'; +import Home from '@/components/aside/Home'; + +import Title from '@/components/header/Title'; + +// TODO: import '@/styles/global.scss'; + +// TODO: export const metadata = { +// title: 'Next.js', +// description: 'Generated by Next.js', +// }; + +export default function RootLayout({ children }) { return ( -
-