This commit is contained in:
Your Name committed 2026-06-21 01:52:57 -04:00
1 parent c449de2482
commit 7e4e89e33c
50 files changed
+306 -140

No files matched your search

@@ -18,9 +18,9 @@ async function getArticle(slug: string): Promise<Article | null> {
export async function generateMetadata({ params }: { params: Promise<{ slug: string, lang: string }> }): Promise<Metadata> {
const { slug, lang } = await params
const article = await getArticle(slug)
if (!article) return { title: 'Article Not Found | HomAroma' }
if (!article) return { title: 'Article Not Found' }
return generateSeoMetadata({
title: `${article.title} | HomAroma Scent Guide`,
title: `${article.title} Scent Guide`,
description: article.content.replace(/<[^>]+>/g, '').slice(0, 160),
path: `/article/${slug}`,
lang,