--- import { getEmDashCollection, getSiteSettings } from "emdash"; import Base from "../layouts/Base.astro"; import ProjectCard from "../components/ProjectCard.astro"; const settings = await getSiteSettings(); const { entries: projects, cacheHint } = await getEmDashCollection("projects"); Astro.cache.set(cacheHint); // Get the 4 most recent projects for the homepage const featuredProjects = projects .toSorted((a, b) => { const dateA = a.data.publishedAt?.getTime() ?? 0; const dateB = b.data.publishedAt?.getTime() ?? 0; return dateB - dateA; }) .slice(0, 4); ---

{settings?.title || "Studio"}

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

{ featuredProjects.length > 0 ? ( ) : (

No projects yet

Add your first project in the admin panel.

Add a project
) }