diff --git a/src/components/ContentRows.svelte b/src/components/ContentRows.svelte
index 1165904..c4baeda 100644
--- a/src/components/ContentRows.svelte
+++ b/src/components/ContentRows.svelte
@@ -116,7 +116,7 @@
{:else if blockType(item) === "link_list"}
{:else if blockType(item) === "post_overview"}
-
+
{:else if blockType(item) === "searchable_text"}
{:else if blockType(item) === "calendar"}
diff --git a/src/components/blocks/PostOverviewBlock.svelte b/src/components/blocks/PostOverviewBlock.svelte
index d8c2ebf..25fcdc1 100644
--- a/src/components/blocks/PostOverviewBlock.svelte
+++ b/src/components/blocks/PostOverviewBlock.svelte
@@ -5,8 +5,20 @@
import type { PostOverviewBlockData } from "../../lib/block-types";
import type { PostEntry } from "../../lib/cms";
import { postHref } from "../../lib/blog-utils";
+ import { t as tStatic, T } from "../../lib/translations";
+ import type { Translations } from "../../lib/translations";
- let { block, class: className = "" }: { block: PostOverviewBlockData; class?: string } = $props();
+ let {
+ block,
+ class: className = "",
+ translations = {},
+ }: {
+ block: PostOverviewBlockData;
+ class?: string;
+ translations?: Translations | null;
+ } = $props();
+
+ const t = (key: Parameters[1]) => tStatic(translations ?? null, key);
marked.setOptions({ gfm: true });
const textHtml = $derived(
@@ -45,4 +57,13 @@
{/each}
{/if}
+
+ {#if posts.length > 0}
+
+ {/if}
diff --git a/src/lib/translations.ts b/src/lib/translations.ts
index 649a750..6e4fdcc 100644
--- a/src/lib/translations.ts
+++ b/src/lib/translations.ts
@@ -154,6 +154,11 @@ const TRANSLATION_KEYS = [
"calendar_next_events",
"calendar_show_more",
"calendar_show_less",
+ "post_comments",
+ "post_map",
+ "post_map_open_osm",
+ "post_map_activate",
+ "post_overview_all",
] as const;
export type TranslationKey = (typeof TRANSLATION_KEYS)[number];