mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-12-03 06:26:41 +00:00
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:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user