Skip to content

Commit

Permalink
refactor: add title text to meta and og
Browse files Browse the repository at this point in the history
  • Loading branch information
koremp committed Mar 22, 2024
1 parent 6e93afe commit 8a0e5b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import "./globals.css";

const inter = Inter({ subsets: ["latin"] });

const title: string = "제22대 국회에 요구한다"

export const metadata: Metadata = {
title: "제22대 국회에 요구한다",
title: title,
description: "제22대 국회의원 후보자들에게 묻습니다",
};

Expand All @@ -17,7 +19,7 @@ export default function RootLayout({
return (
<html lang="ko">

<meta property="og:title" content="제22대 국회에게 요구한다" />
<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 8a0e5b9

Please sign in to comment.