From 4163e19f5267a6e2ebcf973434a9c32be7fdcef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Wed, 28 Oct 2026 13:33:52 +0800 Subject: [PATCH] feat: product list pagination 20/page (was 100, all 48 fit on one page) Co-Authored-By: Claude Code --- app/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/builder.py b/app/builder.py index d09554e..c6843e1 100644 --- a/app/builder.py +++ b/app/builder.py @@ -322,7 +322,7 @@ def build(site_id,mirror=False): totals+=1 # Static pagination: large product collections must not embed 5,000 cards # in one HTML page. Every item remains reachable, including in the sitemap. - LIST_PAGE_SIZE=100 + LIST_PAGE_SIZE=20 def render_paginated(page,items): root_route=page['route'].rstrip('/')+'/' pages=max(1,(len(items)+LIST_PAGE_SIZE-1)//LIST_PAGE_SIZE)