Add SEO from API on About

This commit is contained in:
2022-09-13 11:45:45 +02:00
parent 962580ac98
commit 3f55e178ff
2 changed files with 7 additions and 3 deletions

View File

@@ -64,6 +64,10 @@ export const load: PageServerLoad = async () => {
contact_title contact_title
contact_blocks contact_blocks
seo_title
seo_description
seo_image { id }
} }
}`) }`)
const { data: { about, photos: photosIds }} = res const { data: { about, photos: photosIds }} = res

View File

@@ -196,9 +196,9 @@
<svelte:window bind:scrollY bind:innerWidth bind:innerHeight /> <svelte:window bind:scrollY bind:innerWidth bind:innerHeight />
<Metas <Metas
title="About the project Houses Of" title={about.seo_title}
description="Houses Of is a passion project that collects charismatic houses from around the world through the mediums of graphic design, photography, and documentation" description={about.seo_description}
image="" image={about.seo_image ? getAssetUrlKey(about.seo_image.id, 'share-image') : null}
/> />