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; - {seo.title} + + + +
diff --git a/src/types/seo.ts b/src/types/seo.ts index e17f632..3d1cba6 100644 --- a/src/types/seo.ts +++ b/src/types/seo.ts @@ -8,4 +8,8 @@ export interface Seo { * Description that will be displayed in Google search results. To be fully visible in search results, it should be no longer than 160 characters. */ description: string; + /** + * Path to the image inside the public folder that will be used as page icon and as a preview image in site links. + */ + image?: string; }