分页模式加载文章预览

This commit is contained in:
tangly1024
2022-01-07 17:49:51 +08:00
parent c89048178e
commit f84409e97f
21 changed files with 143 additions and 72 deletions

View File

@@ -18,9 +18,9 @@ const BlogPostListPage = ({ page = 1, posts = [], postCount }) => {
return <BlogPostListEmpty />
} else {
return (
<div id="container" className='mt-10'>
<div id="container">
{/* 文章列表 */}
<div className="flex flex-wrap space-y-8 mx-5 md:mx-0">
<div className="flex flex-wrap lg:space-y-4 space-y-1">
{posts.map(post => (
<BlogPostCard key={post.id} post={post} />
))}