fix: og irudiaren mota konopntzen du
This commit is contained in:
@@ -6,12 +6,14 @@ interface Props {
|
|||||||
title: string;
|
title: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
ogImage?: string;
|
ogImage?: string;
|
||||||
|
ogImageType?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const {
|
const {
|
||||||
title,
|
title,
|
||||||
description = "",
|
description = "",
|
||||||
ogImage = "https://laba.eus/og-image.jpg",
|
ogImage = "https://laba.eus/og-image.jpg",
|
||||||
|
ogImageType = "image/jpeg",
|
||||||
} = Astro.props;
|
} = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -38,7 +40,7 @@ const {
|
|||||||
|
|
||||||
<meta property="og:image" content={ogImage} />
|
<meta property="og:image" content={ogImage} />
|
||||||
<meta property="og:image:secure_url" content={ogImage} />
|
<meta property="og:image:secure_url" content={ogImage} />
|
||||||
<meta property="og:image:type" content="image/jpeg" />
|
<meta property="og:image:type" content={ogImageType} />
|
||||||
<meta property="og:image:width" content="1200" />
|
<meta property="og:image:width" content="1200" />
|
||||||
<meta property="og:image:height" content="630" />
|
<meta property="og:image:height" content="630" />
|
||||||
<meta property="og:image:alt" content="Laba logoa" />
|
<meta property="og:image:alt" content="Laba logoa" />
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ const irudia = ekintza.mainMedia ? getImageData(ekintza.mainMedia) : null;
|
|||||||
title={ekintza.izenburua}
|
title={ekintza.izenburua}
|
||||||
description={ekintza.titularra}
|
description={ekintza.titularra}
|
||||||
ogImage=`${Astro.site}ekintzak/${ekintza.slug}/og.png`
|
ogImage=`${Astro.site}ekintzak/${ekintza.slug}/og.png`
|
||||||
|
ogImageType="image/png"
|
||||||
>
|
>
|
||||||
<Header />
|
<Header />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user