Skip to content

Commit 626f450

Browse files
Mlaz-codeclaude
andcommitted
seo: fix Open Graph tags to use per-page title and description
Removed hardcoded og:title and og:description from root layout so Next.js inherits page-specific values. Added metadataBase, og:type, og:site_name, and og:image with dimensions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 46b4c6d commit 626f450

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/layout.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import 'nextra-theme-docs/style.css'
99
import '../styles/globals.css'
1010

1111
export const metadata: Metadata = {
12+
metadataBase: new URL('https://docs.sharpapi.io'),
1213
title: {
1314
default: 'SharpAPI Docs',
1415
template: '%s - SharpAPI Docs',
@@ -22,8 +23,9 @@ export const metadata: Metadata = {
2223
],
2324
},
2425
openGraph: {
25-
title: 'SharpAPI Documentation',
26-
description: 'SharpAPI documentation — real-time sports betting odds API with +EV detection, arbitrage alerts, low-hold markets, and SSE streaming from 16+ sportsbooks.',
26+
type: 'website',
27+
siteName: 'SharpAPI Docs',
28+
images: [{ url: 'https://sharpapi.io/og-image.png', width: 1200, height: 630, alt: 'SharpAPI - Sports Betting Odds API' }],
2729
},
2830
}
2931

0 commit comments

Comments
 (0)