fix: 'undefined' in title of community page

This commit is contained in:
Xyphyn committed 2023-08-16 16:02:02 -07:00
1 parent db753ff6dc
commit b277a3562f
2 files changed
+11 -16

No files matched your search

+11 -1
View File
@@ -4,6 +4,16 @@
<svelte:head>
<title>{data.community.community_view.community.title}</title>
</svelte:head>
<meta
name="og:title"
content={data.community.community_view.community.title}
/>
{#if data.community.community_view.community.description}
<meta
name="og:description"
content={data.community.community_view.community.description}
/>
{/if}
</svelte:head>
<slot />
-15
View File
@@ -34,21 +34,6 @@
})
</script>
<svelte:head>
<title>{data.posts.posts[0]?.community.name}</title>
<meta
name="og:title"
content={data.community.community_view.community.name}
/>
{#if data.community.community_view.community.description}
<meta
name="og:description"
content={data.community.community_view.community.description}
/>
{/if}
<meta name="og:url" content={$page.url.toString()} />
</svelte:head>
<Modal bind:open={sidebar}>
<span slot="title">About</span>
<div class="mx-auto">