Skip to content

Commit

Permalink
Merge pull request #153 from MurakawaTakuya/feat/152-google-search-co…
Browse files Browse the repository at this point in the history
…nsole

Google Search Consoleと構造化データを登録
  • Loading branch information
MurakawaTakuya authored Jan 11, 2025
2 parents 37a5daa + 739f4dd commit b260dba
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ export default function RootLayout({
}: Readonly<{
children: React.ReactNode;
}>) {
const structuredData = {
"@context": "https://schema.org",
"@type": "WebSite",
name: "TODO REAL",
url: "https://todo-real-c28fa.web.app/",
};

return (
<html lang="ja">
<head>
Expand Down Expand Up @@ -54,6 +61,16 @@ export default function RootLayout({
href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap"
rel="stylesheet"
></link>

{/* Google Searcgh Console */}
<meta
name="google-site-verification"
content="bXYLAh9xBwD_lAd7nd7CK4UoXgxmfBZFt3-Vcqjkk-4"
/>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
/>
</head>
<body>
<UserProvider>
Expand Down

0 comments on commit b260dba

Please sign in to comment.