mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 02:53:51 +00:00
16 lines
488 B
Plaintext
16 lines
488 B
Plaintext
---
|
|
import { getCollection } from "astro:content";
|
|
import ProjectsLayout from "@/layouts/projects.astro";
|
|
import { ProjectList } from "@/components/projects/project-list";
|
|
|
|
const projects = (await getCollection("projects", ({ data }) => {
|
|
return data.isDraft !== true;
|
|
})).sort(
|
|
(a, b) => new Date(b.data.date).getTime() - new Date(a.data.date).getTime()
|
|
);
|
|
---
|
|
|
|
<ProjectsLayout title="Projects | Timothy Pidashev">
|
|
<ProjectList projects={projects} client:load />
|
|
</ProjectsLayout>
|