diff --git a/front/src/layouts/Layout.astro b/front/src/layouts/Layout.astro index aaa3b07..4800b9c 100644 --- a/front/src/layouts/Layout.astro +++ b/front/src/layouts/Layout.astro @@ -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 { - + diff --git a/front/src/views/ekintza/Ekintza.astro b/front/src/views/ekintza/Ekintza.astro index b821b3a..2c340a6 100644 --- a/front/src/views/ekintza/Ekintza.astro +++ b/front/src/views/ekintza/Ekintza.astro @@ -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" >