ajdfhsjdf
This commit is contained in:
parent
f41bbf3684
commit
5582e539ff
1 changed files with 2 additions and 7 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue