Add og:type and og:url to published pages (#4881)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Greg Bergé
2026-12-02 22:24:41 +01:00
committed by GitHub
parent 6e39000057
commit db7f9ffc71
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"gitbook": patch
---
Add `og:type` and `og:url` meta tags to published pages so every page has the required Open Graph tags.
@@ -301,7 +301,10 @@ export async function generateSitePageMetadata(props: SitePageProps): Promise<Me
...(alternates?.generic ? { '': alternates?.generic } : {}),
},
},
// og:title and og:description are inherited from `title` and `description` by Next.js.
openGraph: {
type: 'website',
url: canonical,
images: [
customization.socialPreview.url
? await getResizedImageURL(imageResizer, customization.socialPreview.url, {