perf: 首页分页改为每页20条,提升加载性能

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jowe
2026-03-13 21:12:47 +08:00
parent 9470acc369
commit ecfb0db1fa

2
app.py
View File

@@ -110,7 +110,7 @@ def create_app(config_name='default'):
search_query = request.args.get('q', '').strip()
current_tab = request.args.get('tab', 'latest') # 默认为"最新"
page = request.args.get('page', 1, type=int)
per_page = 100 # 每页显示100个站点
per_page = 20 # 每页显示20个站点
selected_tag = None