From d2c45dbccacc7f8dda16d4e01a0f15cddb3fa451 Mon Sep 17 00:00:00 2001 From: "Aitor C. Urrutia Aranburu" Date: Wed, 22 Oct 2025 18:41:15 +0200 Subject: [PATCH] fix: og irudiaren mota konopntzen du --- front/src/layouts/Layout.astro | 4 +++- front/src/views/ekintza/Ekintza.astro | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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" >