diff --git a/src/lib/components/blocks/PostOverviewBlock.svelte b/src/lib/components/blocks/PostOverviewBlock.svelte index 675e786..be39f8a 100644 --- a/src/lib/components/blocks/PostOverviewBlock.svelte +++ b/src/lib/components/blocks/PostOverviewBlock.svelte @@ -20,8 +20,13 @@ const posts = $derived((block.postsResolved ?? []) as (PostEntry & { _resolvedImageUrl?: string })[]); const design = $derived(block.design || "cards"); const tagBase = "/posts/tag"; + // Hide the entire block (headline, intro, footer link) when there are no + // posts and no intro text — otherwise an empty section with just a heading + // sits on the page. + const hasContent = $derived(posts.length > 0 || textHtml.length > 0); +{#if hasContent}