diff options
Diffstat (limited to 'www-2/src/pages/posts.astro')
| -rw-r--r-- | www-2/src/pages/posts.astro | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www-2/src/pages/posts.astro b/www-2/src/pages/posts.astro new file mode 100644 index 0000000..b4c6189 --- /dev/null +++ b/www-2/src/pages/posts.astro @@ -0,0 +1,11 @@ +--- +import { getCollection } from "astro:content"; + +import ListPage from "../layouts/ListPage.astro"; + +const posts = await getCollection("articles", ({ id }) => + id.startsWith("posts/"), +); +--- + +<ListPage title="Posts" articles={posts} /> |
