import type { Metadata } from "next"; import Link from "next/link"; import { BasePage } from "@/app/base-page"; import { Separator } from "@/components/ui/separator"; import { getPosts } from "@/blog/query"; import type { Post } from "@/blog/types"; export const metadata: Metadata = { title: "Blog - OpenCut", description: "Read the latest news and updates about OpenCut, the free and open-source video editor.", openGraph: { title: "Blog - OpenCut", description: "Read the latest news and updates about OpenCut, the free and open-source video editor.", type: "website", }, }; export default async function BlogPage() { const data = await getPosts().catch(() => null); if (!data || !data.posts) return
No posts yet
; return (
{data.posts.map((post) => (
))}
); } function BlogPostItem({ post }: { post: Post }) { return (

{post.title}

{post.description}

); }