feat(page): Kommentar-Badge oben mit Scroll-to-Comments
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
import ContentRows from '$lib/components/ContentRows.svelte';
|
import ContentRows from '$lib/components/ContentRows.svelte';
|
||||||
import Accordion from '$lib/components/Accordion.svelte';
|
import Accordion from '$lib/components/Accordion.svelte';
|
||||||
import Comments from '$lib/components/Comments.svelte';
|
import Comments from '$lib/components/Comments.svelte';
|
||||||
|
import PostActions from '$lib/components/PostActions.svelte';
|
||||||
|
import { page } from '$app/stores';
|
||||||
import type { PageData } from './$types';
|
import type { PageData } from './$types';
|
||||||
|
|
||||||
let { data }: { data: PageData } = $props();
|
let { data }: { data: PageData } = $props();
|
||||||
@@ -14,6 +16,17 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{#if data.commentPageId}
|
||||||
|
<div class="mb-4 print:hidden">
|
||||||
|
<PostActions
|
||||||
|
url={$page.url.href}
|
||||||
|
title={data.seoTitle}
|
||||||
|
commentPageId={data.commentPageId}
|
||||||
|
commentTargetId="comments-section"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
<ContentRows layout={data.page} translations={data.translations} />
|
<ContentRows layout={data.page} translations={data.translations} />
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
Reference in New Issue
Block a user