fix blog build when marble cms isn't available

This commit is contained in:
Maze Winther
2026-03-24 14:18:39 +01:00
parent 26d523ebad
commit f2eed05d36
4 changed files with 70 additions and 10 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
};
export default async function BlogPage() {
const data = await getPosts();
const data = await getPosts().catch(() => null);
if (!data || !data.posts) return <div>No posts yet</div>;
return (