分类页面

This commit is contained in:
tangly1024.com
2023-11-03 19:06:23 +08:00
parent 62c7e1c0df
commit d9ef9a31c9
5 changed files with 43 additions and 31 deletions

View File

@@ -20,7 +20,7 @@ const BlogPostListPage = ({ page = 1, posts = [], postCount, siteInfo }) => {
return (
<div id="container" className='w-full'>
{/* 文章列表 */}
<div className="space-y-6 px-2">
<div className="py-4 gap-4 grid grid-cols-3">
{posts?.map(post => (
<ProductCard index={posts.indexOf(post)} key={post.id} post={post} siteInfo={siteInfo}/>
))}