diff --git a/src/app/[lang]/(home)/Article.tsx b/src/app/[lang]/(home)/Article.tsx index 236f887..d9cd288 100644 --- a/src/app/[lang]/(home)/Article.tsx +++ b/src/app/[lang]/(home)/Article.tsx @@ -32,7 +32,7 @@ function Article({ /> )} -
+

{title}

diff --git a/src/app/[lang]/(home)/page.tsx b/src/app/[lang]/(home)/page.tsx index 2959bfa..d22555b 100644 --- a/src/app/[lang]/(home)/page.tsx +++ b/src/app/[lang]/(home)/page.tsx @@ -2,7 +2,8 @@ import type { Metadata } from 'next'; import { getDictionary } from '~/data/i18n'; import Container from '@/components/Container'; -import { H1 } from '@/components/Heading'; +import { H1, H2 } from '@/components/Heading'; +import Button from '@/components/Button'; import List from '@/components/List'; import { getAllDataFrontmatter } from '@/utils/mdx'; @@ -22,6 +23,7 @@ export async function generateMetadata({ async function RootPage({ params: { lang } }: RootParams) { const posts = await getAllDataFrontmatter('posts'); const { homePage, common } = await getDictionary(lang); + const nextPostId = posts.at(4)?.id || ''; return ( <> @@ -30,8 +32,13 @@ async function RootPage({ params: { lang } }: RootParams) {

{homePage.description}

-

{common.latestPosts}

+

{common.latestPosts}

+
+ +
); diff --git a/src/app/[lang]/layout.tsx b/src/app/[lang]/layout.tsx index ebe9043..3bbcf98 100644 --- a/src/app/[lang]/layout.tsx +++ b/src/app/[lang]/layout.tsx @@ -5,7 +5,6 @@ import ThemeSwitcher from '@/components/ThemeSwitcher'; import Header, { Avatar } from './Header'; import Footer from './Footer'; import Menu, { MenuProps } from './Menu'; -import cn from '@/utils/cn'; export async function generateStaticParams() { return locales.map((lang) => ({ lang })); @@ -60,12 +59,7 @@ async function I18nLayout({ <>
}> - +
{children}