Fix static share image to include origin URL
This commit is contained in:
@@ -3,13 +3,13 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { navigating } from '$app/stores'
|
import { navigating, page } from '$app/stores'
|
||||||
import type { PageData } from './$types'
|
import type { PageData } from './$types'
|
||||||
import { getContext, onMount } from 'svelte'
|
import { getContext, onMount } from 'svelte'
|
||||||
import { timeline, stagger } from 'motion'
|
import { timeline, stagger } from 'motion'
|
||||||
import { DELAY } from '$utils/contants'
|
import { DELAY } from '$utils/contants'
|
||||||
import { smoothScroll } from '$utils/stores'
|
import { smoothScroll } from '$utils/stores'
|
||||||
import { getAssetUrlKey } from '$utils/api'
|
// 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
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
<Metas
|
<Metas
|
||||||
title={settings.seo_title}
|
title={settings.seo_title}
|
||||||
description={settings.seo_description}
|
description={settings.seo_description}
|
||||||
image="/images/share_image.jpg"
|
image="{$page.url.origin}/images/share_image.jpg"
|
||||||
/>
|
/>
|
||||||
<!-- image={getAssetUrlKey(settings.seo_image.id, 'share-image')} -->
|
<!-- image={getAssetUrlKey(settings.seo_image.id, 'share-image')} -->
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user