diff --git a/app/[...slug]/page.jsx b/app/[...slug]/page.jsx index 812e47d..e82c78d 100644 --- a/app/[...slug]/page.jsx +++ b/app/[...slug]/page.jsx @@ -74,9 +74,13 @@ export default async function DynamicPage({ params, searchParams }) { slug: item.slug, title: item.title, image: item.image || item.cover || item.img || '', - content: item.content || item.description || '', + additional_title: item.additional_title || '', + subtitle: item.subtitle || item.content || '', })); + // 新增:允许通过变量控制列数,默认4 + const listColumns = 4; // 可根据需要改为变量 + return ( <> @@ -85,7 +89,7 @@ export default async function DynamicPage({ params, searchParams }) {
- +
  • goToPage(currentPage - 1)}> - Prev +
  • {[...Array(totalPages)].map((_, idx) => { @@ -32,7 +34,9 @@ export default function Pagination1({ currentPage, totalPages, basePath }) { })}
  • goToPage(currentPage + 1)}> - Next +