Skip to content

Commit fa39e19

Browse files
feat(UI): #94: delete check width and height
1 parent 21430dc commit fa39e19

1 file changed

Lines changed: 9 additions & 23 deletions

File tree

ui/components/PageHead/PageHead.jsx

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)