主题分页相关调整

This commit is contained in:
tangly1024.com
2024-06-28 16:57:47 +08:00
parent b3e008a5f7
commit 3f686ed16f
32 changed files with 131 additions and 105 deletions

View File

@@ -15,7 +15,7 @@ import BlogPostListEmpty from './BlogPostListEmpty'
*/
const BlogPostListScroll = ({ posts = [], currentSearch }) => {
const { NOTION_CONFIG } = useGlobal()
const POSTS_PER_PAGE = siteConfig('POSTS_PER_PAGE', 12, NOTION_CONFIG)
const POSTS_PER_PAGE = siteConfig('POSTS_PER_PAGE', null, NOTION_CONFIG)
const [page, updatePage] = useState(1)
const router = useRouter()
let filteredPosts = Object.assign(posts)