Passing icon.

This commit is contained in:
Bradley Shellnut 2023-09-13 20:25:07 -07:00
parent f84f2ecbe8
commit dc121abb2a

View file

@ -1,6 +1,7 @@
import { superValidate } from 'sveltekit-superforms/server';
import { search_schema } from '$lib/zodValidation';
import type { MetaTagsProps } from 'svelte-meta-tags';
import logo from '$lib/assets/bored-game.png';
export const load = async ({ fetch, url }) => {
const metaTags: MetaTagsProps = Object.freeze({
@ -14,7 +15,7 @@ export const load = async ({ fetch, url }) => {
description: 'Bored Game, keep track of your games',
images: [
{
url: `${new URL(url.pathname, url.origin).href}/og?title=Home`,
url: `${new URL(url.pathname, url.origin).href}og?title=Home | Bored Game&icon=${logo}`,
width: 1200,
height: 630
}