From 47a23ca34ad23f4ee0eaa6386f074372e305868c Mon Sep 17 00:00:00 2001 From: Szymon Kin <68154191+hoolek77@users.noreply.github.com> Date: Sat, 3 Dec 2022 19:22:53 +0100 Subject: [PATCH] Add OG metadata (#110) --- src/pages/index.astro | 6 +++++- src/types/seo.ts | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index ccbd62d..c1b4647 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -12,6 +12,7 @@ import getObjectKeys from '@/utils/getObjectKeys'; import data from '../data'; const { seo, i18n, ...dataWithoutSeoAndI18n } = data; +const seoImage = seo.image ? seo.image : '/favicon.svg'; --- @@ -19,10 +20,13 @@ const { seo, i18n, ...dataWithoutSeoAndI18n } = data;
-