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