hexo微调 奇偶卡牌样式差异

This commit is contained in:
tangly1024.com
2023-02-02 13:13:54 +08:00
parent 0178123e13
commit 797bb445c9
3 changed files with 24 additions and 23 deletions

View File

@@ -22,7 +22,7 @@ const BlogPostListPage = ({ page = 1, posts = [], postCount }) => {
{/* 文章列表 */}
<div className="space-y-6 px-2">
{posts.map(post => (
<BlogPostCard key={post.id} post={post} />
<BlogPostCard key={post.id} post={post} index={posts.indexOf(post)}/>
))}
</div>
{showPagination && <PaginationNumber page={page} totalPage={totalPage} />}