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
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
This commit is contained in:
parent
abbe9f6531
commit
42ccd7c049
10
package-lock.json
generated
10
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user