only show desc if there is one

This commit is contained in:
cirroskais 2024-04-22 09:00:44 -04:00
parent a96eb6a2c9
commit 96a319112c
No known key found for this signature in database
GPG key ID: 36FBC361DF481862

View file

@ -16,5 +16,7 @@
{:else}
<meta property="og:image" content={$page.url.origin + (image.length ? image : '/api/avatar')} />
{/if}
<meta property="og:description" content={descripton} />
{#if descripton.length}
<meta property="og:description" content={descripton} />
{/if}
</svelte:head>