diff --git a/src/routes/index.tsx b/src/routes/index.tsx index b39e731..d01071f 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -1,5 +1,6 @@ import { createFileRoute } from "@tanstack/react-router"; import { findPosts } from "@/lib/cms"; +import { m } from "@/paraglide/messages"; import Landing from "@/sections/Landing"; import LatestPosts from "@/sections/LatestPosts"; @@ -7,7 +8,7 @@ export const Route = createFileRoute("/")({ loader: async () => { // Soft-fail on CMS hiccups so the hero still renders. try { - const { docs } = await findPosts("de", 2); + const { docs } = await findPosts(undefined, 2); return { posts: docs }; } catch { return { posts: [] }; @@ -15,7 +16,7 @@ export const Route = createFileRoute("/")({ }, component: HomePage, head: () => ({ - meta: [{ title: "unom - Kreative Webentwicklung" }], + meta: [{ title: m.home_title() }], }), });