add og meta tags

This commit is contained in:
2024-11-02 19:09:50 +01:00
parent d1b7fa58b4
commit e41c65e1fc
7 changed files with 13 additions and 0 deletions

View File

@ -84,6 +84,14 @@
}}
/>
<svelte:head>
{#if !onAdminPage}
<meta property="og:url" content={$page.url.toString()} />
<meta property="og:type" content="website" />
<meta property="og:image" content="{env.PUBLIC_BASE_PATH}/img/logo-512.png" />
{/if}
</svelte:head>
<main>
<div class="min-h-[calc(100vh-3.5rem)] h-full w-full" class:min-h-screen={onAdminPage}>
<slot />