Skip to content

Commit

Permalink
fix: add openGraph to metaData
Browse files Browse the repository at this point in the history
  • Loading branch information
koremp committed Mar 23, 2024
1 parent 6a23780 commit d7a36c3
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,21 @@ import "./globals.css";
const inter = Inter({ subsets: ["latin"] });

const title: string = "제22대 국회에 요구한다"
const desc: string = "제22대 국회의원 후보자들에게 묻습니다"

export const metadata: Metadata = {
title: title,
description: "제22대 국회의원 후보자들에게 묻습니다",
description: desc,
openGraph: {
type: "website",
url: "https://call22nd.works",
siteName: title,
description: desc,
images: [
"./opengraph-image.png",
],

}
};

export default function RootLayout({
Expand All @@ -18,9 +29,6 @@ export default function RootLayout({
}>) {
return (
<html lang="ko">

<meta property="og:title" content={title} />
<meta property="og:image" content="./opengraph-image.png" />
<body className={inter.className}>{children}</body>
</html>
);
Expand Down

0 comments on commit d7a36c3

Please sign in to comment.