--- import { getEmDashCollection, getSiteSettings } from "emdash"; import Base from "../layouts/Base.astro"; import ProjectCard from "../components/ProjectCard.astro"; // Fetch settings + the 4 featured projects in parallel. Limiting and // sorting in the database avoids loading every project just to slice // off the first 4 in JS (a full-table read on sites with lots of work). const [settings, { entries: featuredProjects, cacheHint }] = await Promise.all([ getSiteSettings(), getEmDashCollection("projects", { orderBy: { published_at: "desc" }, limit: 4, }), ]); Astro.cache.set(cacheHint); ---

{settings?.title || "Studio"}

{settings?.tagline || "Design & Development"}

{ featuredProjects.length > 0 ? ( ) : (

No projects yet

Add your first project in the admin panel.

Add a project
) }