feat: Increase posts per page from 10 to 20

This commit is contained in:
KazooTTT
2025-02-08 17:01:37 +08:00
parent 81bce7bde0
commit b0d1a1049a
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import { collectionDateSort } from "@/utils/date";
import type { GetStaticPaths, Page } from "astro"; import type { GetStaticPaths, Page } from "astro";
export const getStaticPaths = (async ({ paginate }) => { export const getStaticPaths = (async ({ paginate }) => {
const MAX_POSTS_PER_PAGE = 10; const MAX_POSTS_PER_PAGE = 20;
const MAX_TAGS = 7; const MAX_TAGS = 7;
const MAX_CATEGORIES = 7; const MAX_CATEGORIES = 7;
const allPosts = await getAllPosts(); const allPosts = await getAllPosts();

View File

@ -9,7 +9,7 @@ import type { GetStaticPaths, Page } from "astro";
import { Icon } from "astro-icon/components"; import { Icon } from "astro-icon/components";
export const getStaticPaths = (async ({ paginate }) => { export const getStaticPaths = (async ({ paginate }) => {
const MAX_POSTS_PER_PAGE = 10; const MAX_POSTS_PER_PAGE = 20;
const MAX_TAGS = 7; const MAX_TAGS = 7;
const MAX_CATEGORIES = 7; const MAX_CATEGORIES = 7;
const allPosts = await getAllPosts(); const allPosts = await getAllPosts();