From b0d1a1049a56cea3e697d1a42128d5ac294b879c Mon Sep 17 00:00:00 2001 From: KazooTTT Date: Sat, 8 Feb 2025 17:01:37 +0800 Subject: [PATCH] feat: Increase posts per page from 10 to 20 --- src/pages/blog/[...page].astro | 2 +- src/pages/posts/[...page].astro | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/blog/[...page].astro b/src/pages/blog/[...page].astro index 1656d52..bae6a05 100644 --- a/src/pages/blog/[...page].astro +++ b/src/pages/blog/[...page].astro @@ -5,7 +5,7 @@ import { collectionDateSort } from "@/utils/date"; import type { GetStaticPaths, Page } from "astro"; export const getStaticPaths = (async ({ paginate }) => { - const MAX_POSTS_PER_PAGE = 10; + const MAX_POSTS_PER_PAGE = 20; const MAX_TAGS = 7; const MAX_CATEGORIES = 7; const allPosts = await getAllPosts(); diff --git a/src/pages/posts/[...page].astro b/src/pages/posts/[...page].astro index bf8c745..1f40e43 100644 --- a/src/pages/posts/[...page].astro +++ b/src/pages/posts/[...page].astro @@ -9,7 +9,7 @@ import type { GetStaticPaths, Page } from "astro"; import { Icon } from "astro-icon/components"; export const getStaticPaths = (async ({ paginate }) => { - const MAX_POSTS_PER_PAGE = 10; + const MAX_POSTS_PER_PAGE = 20; const MAX_TAGS = 7; const MAX_CATEGORIES = 7; const allPosts = await getAllPosts();