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.
2 parents 3ddb6c6 + 3b004dd commit 1834e29Copy full SHA for 1834e29
components/PageHead.tsx
@@ -99,6 +99,27 @@ export function PageHead({
99
<meta property='og:title' content={title} />
100
<meta name='twitter:title' content={title} />
101
<title>{title}</title>
102
+
103
+ {/* Better SEO for the blog posts */}
104
+ {isBlogPost && (
105
+ <script type='application/ld+json'>
106
+ {JSON.stringify({
107
+ '@context': 'https://schema.org',
108
+ '@type': 'BlogPosting',
109
+ '@id': `${url}#BlogPosting`,
110
+ mainEntityOfPage: url,
111
+ url,
112
+ headline: title,
113
+ name: title,
114
+ description,
115
+ author: {
116
+ '@type': 'Person',
117
+ name: config.author
118
+ },
119
+ image: socialImageUrl
120
+ })}
121
+ </script>
122
+ )}
123
</Head>
124
)
125
}
0 commit comments