ajdfhsjdf

This commit is contained in:
cirroskais 2024-04-22 08:49:41 -04:00
parent f41bbf3684
commit 5582e539ff
No known key found for this signature in database
GPG key ID: 36FBC361DF481862

View file

@ -5,20 +5,15 @@
image = '', image = '',
descripton = '', descripton = '',
bigImage = ''; bigImage = '';
// hate
page.subscribe((_) => {
if (!image.length) image = _.url.origin + '/api/avatar';
});
</script> </script>
<svelte:head> <svelte:head>
<title>{title}</title> <title>{title}</title>
<meta property="og:title" content={title} /> <meta property="og:title" content={title} />
{#if bigImage.length} {#if bigImage.length}
<meta property="og:thumbnail" content={bigImage} /> <meta property="og:thumbnail" content={$page.url.origin + bigImage} />
{:else} {:else}
<meta property="og:image" content={image} /> <meta property="og:image" content={$page.url.origin + image} />
{/if} {/if}
<meta property="og:description" content={descripton} /> <meta property="og:description" content={descripton} />
</svelte:head> </svelte:head>