From e41e5abe121db3f5f837911d9db844448e4ed774 Mon Sep 17 00:00:00 2001 From: Sakarias Date: Thu, 10 Oct 2024 23:30:33 +0200 Subject: [PATCH] fix(meta): meta-image show correct url (#54) --- src/layouts/Layout.astro | 2 +- src/pages/news/[slug].astro | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 1d02986..8e46e17 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -20,7 +20,7 @@ const { introText, type = "website", lang = "no", - image = "/images/tg.jpg", + image = "https://www.tg.no/images/tg23-oversikt.jpg", description = "We have hosted The Gathering since 1992 and it has always been a hub for young creative people to battle it out in many types of competitions; demo-coding, music, graphics, animation, and gaming.", } = Astro.props; diff --git a/src/pages/news/[slug].astro b/src/pages/news/[slug].astro index 9527640..c59fed7 100644 --- a/src/pages/news/[slug].astro +++ b/src/pages/news/[slug].astro @@ -30,7 +30,8 @@ const article = await fetchArticleById({ seo_title=`${article.meta.seo_title}` search_description=`${article.meta.search_description}` introText=`${article.intro}` - type="article"> + type="article" + image=`${article.main_image?.sizes.large.url}`>