Add default share image to Metas

This commit is contained in:
2022-09-13 11:45:34 +02:00
parent bc38389ae1
commit 962580ac98

View File

@@ -1,7 +1,12 @@
<script lang="ts"> <script lang="ts">
import { getContext } from 'svelte'
import { getAssetUrlKey } from '$utils/api'
const { settings }: any = getContext('global')
export let title: string export let title: string
export let description: string = undefined 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 url: string = undefined
export let type: string = 'website' export let type: string = 'website'
export let card: string = 'summary_large_image' export let card: string = 'summary_large_image'