File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,16 +17,6 @@ export function PageHead({
1717 image,
1818 } = seoData ;
1919
20- const {
21- src : imageSrc ,
22- width : imageWidth ,
23- height : imageHeight ,
24- } = image || {
25- src : `/images/browser-preview.webp` ,
26- width : `300` ,
27- height : `300` ,
28- } ;
29-
3020 return (
3121 < Head >
3222 < meta charSet = "utf-8" />
@@ -54,20 +44,16 @@ export function PageHead({
5444 />
5545 < meta
5646 property = "og:image"
57- content = { imageSrc }
47+ content = { image ?. src || `/images/browser-preview.webp` }
48+ />
49+ < meta
50+ property = "og:image:width"
51+ content = "300"
52+ />
53+ < meta
54+ property = "og:image:height"
55+ content = "300"
5856 />
59- { imageWidth && (
60- < meta
61- property = "og:image:width"
62- content = { imageWidth }
63- />
64- ) }
65- { imageHeight && (
66- < meta
67- property = "og:image:height"
68- content = { imageHeight }
69- />
70- ) }
7157
7258 < script
7359 type = "application/ld+json"
You can’t perform that action at this time.
0 commit comments