chore: bütün gönderilerin görüntülendiği sayfayı güncelle
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled

This commit is contained in:
log101 2025-09-16 06:23:40 +03:00
parent abbe9f6531
commit 42ccd7c049
2 changed files with 13 additions and 8 deletions

10
package-lock.json generated
View File

@ -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",

View File

@ -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,
});
}