feat: add picos de europa post
Some checks failed
Deploy to SFTP Server / build (push) Failing after 2m23s

This commit is contained in:
Max Richter
2025-10-22 22:01:39 +02:00
parent c542408f6a
commit 7d0ccac81f
50 changed files with 3435 additions and 68 deletions

View File

@@ -8,10 +8,12 @@ import HeroCard from "@components/HeroCard.astro";
const locale = getLocale(Astro.url);
const pages = await getCollection("projects");
const posts = filterCollection(pages, locale)
.sort((a, b) => (b.data.date > a.data.date ? 1 : -1))
.sort((a) => (a.data.featured ? -1 : 1));
.sort((a, b) => (new Date(b.data.date) > new Date(a.data.date) ? 1 : -1))
---
<Layout title="Max Richter">
{posts.map((post) => <HeroCard post={post} />)}
{
posts.map((post) => <HeroCard post={post} />)
}
</Layout>