--- /** * Homepage / Blog Index * * Demonstrates: * - getEmDashCollection for listing entries * - Passing image fields correctly to components */ import { getEmDashCollection } from "emdash"; import Base from "../layouts/Base.astro"; import PostCard from "../components/PostCard.astro"; const { entries: posts } = await getEmDashCollection("posts", { status: "published", limit: 10, }); ---
{ posts.length > 0 ? (
{posts.map((post) => ( ))}
) : (

No posts yet.

) }