Update homepage metas and add share image
This commit is contained in:
@@ -51,6 +51,7 @@ export const load: PageServerLoad = async () => {
|
|||||||
seo_name
|
seo_name
|
||||||
seo_title
|
seo_title
|
||||||
seo_description
|
seo_description
|
||||||
|
seo_image { id }
|
||||||
description
|
description
|
||||||
explore_list
|
explore_list
|
||||||
limit_new
|
limit_new
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
import { timeline, stagger } from 'motion'
|
import { timeline, stagger } from 'motion'
|
||||||
import { DELAY } from '$utils/contants'
|
import { DELAY } from '$utils/contants'
|
||||||
import { smoothScroll } from '$utils/functions'
|
import { smoothScroll } from '$utils/functions'
|
||||||
|
import { getAssetUrlKey } from '$utils/api'
|
||||||
import reveal from '$animations/reveal'
|
import reveal from '$animations/reveal'
|
||||||
import { quartOut } from '$animations/easings'
|
import { quartOut } from '$animations/easings'
|
||||||
// Components
|
// Components
|
||||||
@@ -75,9 +76,9 @@
|
|||||||
<svelte:window bind:scrollY bind:innerHeight />
|
<svelte:window bind:scrollY bind:innerHeight />
|
||||||
|
|
||||||
<Metas
|
<Metas
|
||||||
title="{settings.seo_name} — {settings.seo_title}"
|
title={settings.seo_title}
|
||||||
description={settings.seo_description}
|
description={settings.seo_description}
|
||||||
image=""
|
image={getAssetUrlKey(settings.seo_image.id, 'share-image')}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<PageTransition name="homepage">
|
<PageTransition name="homepage">
|
||||||
|
|||||||
Reference in New Issue
Block a user