feat: add picos de europa post
Some checks failed
Deploy to SFTP Server / build (push) Failing after 2m23s
Some checks failed
Deploy to SFTP Server / build (push) Failing after 2m23s
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user