We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3775e0d commit 2b5af95Copy full SHA for 2b5af95
site/src/lib/schema.ts
@@ -101,6 +101,9 @@ function buildArticleSchema(route: StarlightRouteData) {
101
const dateModified =
102
data.lastUpdated?.toISOString() || new Date().toISOString();
103
104
+ // Use the OG image for this specific page
105
+ const ogImageUrl = `${siteConfig.siteUrl}/og/${route.id}.png`;
106
+
107
return {
108
"@context": "https://schema.org",
109
"@type": "Article",
@@ -119,7 +122,7 @@ function buildArticleSchema(route: StarlightRouteData) {
119
122
url: siteConfig.authorUrl,
120
123
image: siteConfig.authorImage,
121
124
},
- image: siteConfig.logoUrl,
125
+ image: ogImageUrl,
126
inLanguage: "en",
127
};
128
}
0 commit comments