Skip to content

Commit

Permalink
๐Ÿ” meta tags #24
Browse files Browse the repository at this point in the history
  • Loading branch information
kihyeoon committed Sep 8, 2024
1 parent dd825a6 commit 96f50af
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
29 changes: 26 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,31 @@ import "./globals.css";
const fontSans = Open_Sans({ subsets: ["latin"], variable: "--font-sans" });

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: {
template: "%s | ๊ตฌ์Šคํ† ",
default: "๊ตฌ์Šคํ†  - ๋ ˆ์‹œํ”ผ ์˜์ƒ ์š”์•ฝ",
},
description: "๊ตฌ์Šคํ† ์—์„œ AI๋กœ ๋ ˆ์‹œํ”ผ ์˜์ƒ์„ ์š”์•ฝํ•ด๋ณด์„ธ์š”!",
keywords: [
"๊ตฌ์Šคํ† ",
"Gusto",
"์œ ํŠœ๋ธŒ ๋ ˆ์‹œํ”ผ",
"๋ ˆ์‹œํ”ผ",
"๋ ˆ์‹œํ”ผ ๊ด€๋ฆฌ",
"์˜์ƒ ์š”์•ฝ",
"๋ ˆ์‹œํ”ผ ์ƒ์„ฑ",
"์ •๋ณด ์ดํ•ด",
"AI ๊ธฐ๋ฐ˜ ์„œ๋น„์Šค",
],
openGraph: {
type: "website",
locale: "ko_KR",
title: "๊ตฌ์Šคํ†  - ๋ ˆ์‹œํ”ผ ์˜์ƒ ์š”์•ฝ | Gusto",
siteName: "๊ตฌ์Šคํ† ",
description:
"๊ตฌ์Šคํ† ์—์„œ AI๋ฅผ ํ†ตํ•ด ์š”๋ฆฌ ์˜์ƒ์„ ์š”์•ฝํ•˜๊ณ  ๋ ˆ์‹œํ”ผ๋ฅผ ์ •๋ฆฌํ•ด๋ณด์„ธ์š”",
url: "https://gusto-hazel.vercel.app",
},
};

export default function RootLayout({
Expand All @@ -25,7 +48,7 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
<html lang="en">
<html lang="ko-KR">
<body
className={cn(
"flex min-h-dvh flex-col bg-neutral-200 font-sans antialiased",
Expand Down
12 changes: 12 additions & 0 deletions src/app/recipe/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { type Metadata } from "next";
import { notFound } from "next/navigation";

import RecipeDetailContainer from "@/features/recipe/components/detail/RecipeDetailContainer";
Expand All @@ -9,6 +10,17 @@ interface Props {
};
}

export const metadata: Metadata = {
title: "๋ ˆ์‹œํ”ผ",
};

// export async function generateMetadata({
// params: { id },
// }: Props): Promise<Metadata> {
// const recipe = await getRecipeById(id);
// return { title: recipe.title };
// }

export default async function RecipePage({ params: { id } }: Props) {
const recipe = await getRecipeById(id);

Expand Down

0 comments on commit 96f50af

Please sign in to comment.