fix: 'undefined' in title of community page
This commit is contained in:
1 parent
db753ff6dc
commit
b277a3562f
2 files changed
+11
-16
No files matched your search
@@ -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 />
|
||||
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user