diff --git a/package-lock.json b/package-lock.json index c56adba..4f034f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "@astrojs/check": "0.9.4", "@astrojs/tailwind": "^6.0.2", "astro": "^5.13.7", + "dewp": "^0.0.6", "htmx.org": "^1.9.12", "remark-toc": "^9.0.0", "tailwindcss": "^3.4.3", @@ -2460,6 +2461,15 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/dewp": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/dewp/-/dewp-0.0.6.tgz", + "integrity": "sha512-0t/TEDC+SYmuhjOwZ1LptrFr70wXRO5PzH+WTykp6eDZjFTwjLquvqU/ZJTaDyLAeGCm9nPcVA6Gv0Cx5O6FVA==", + "license": "MIT", + "peerDependencies": { + "astro": "^5.0.8" + } + }, "node_modules/dfa": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/dfa/-/dfa-1.2.0.tgz", diff --git a/src/pages/posts/[page].astro b/src/pages/posts/[page].astro index 14a281c..08f0163 100644 --- a/src/pages/posts/[page].astro +++ b/src/pages/posts/[page].astro @@ -8,15 +8,10 @@ import Layout from "@/layouts/Layout.astro"; import Post from "@/components/Post.astro"; export async function getStaticPaths({ paginate }: { paginate: any }) { - const blogEntries = await getCollection("blog"); - const allReviews = await getCollection("bookReview"); + const posts = await getCollection("posts"); - const allPosts = [...allReviews, ...blogEntries].filter( - (post) => !post.data.draft - ); - - return paginate(allPosts, { - pageSize: 3, + return paginate(posts, { + pageSize: 10, }); }