fix: limit latest updates preview to nine
All checks were successful
Deploy to Frontend Servers / deploy (push) Successful in 26s

This commit is contained in:
TerryM
2026-06-02 23:52:49 +08:00
parent 2955ba1039
commit 0326cb2998

View File

@@ -148,7 +148,7 @@ export function Home() {
const postQ = `?lang=${langParam}&language=${languageParam}`;
const categoriesUrl = `/api/categories${catQ}`;
const recommendedUrl = `/api/posts/recommended${postQ}&limit=12`;
const latestUrl = `/api/posts${postQ}&sort=latest&limit=12`;
const latestUrl = `/api/posts${postQ}&sort=latest&limit=9`;
const popularUrl = `/api/posts${postQ}&sort=popular&limit=5`;
const applyHomeData = (