Add default share image to Metas
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte'
|
||||
import { getAssetUrlKey } from '$utils/api'
|
||||
|
||||
const { settings }: any = getContext('global')
|
||||
|
||||
export let title: string
|
||||
export let description: string = undefined
|
||||
export let image: string = undefined
|
||||
export let image: string = getAssetUrlKey(settings.seo_image.id, 'share-image')
|
||||
export let url: string = undefined
|
||||
export let type: string = 'website'
|
||||
export let card: string = 'summary_large_image'
|
||||
|
||||
Reference in New Issue
Block a user