12 lines
346 B
Text
12 lines
346 B
Text
|
---
|
||
|
import { getCollection } from "astro:content";
|
||
|
import { POSTS } from "@consts";
|
||
|
import ShowcasePage from "@components/ShowcasePage.astro";
|
||
|
|
||
|
const posts = (await getCollection("posts"))
|
||
|
.filter((post) => !post.data.draft)
|
||
|
.sort((a, b) => b.data.date.valueOf() - a.data.date.valueOf());
|
||
|
---
|
||
|
|
||
|
<ShowcasePage content={posts} CONSTS={POSTS} />
|