feat: only display feature image on the homepage.

This commit is contained in:
Yufan Sheng 2024-10-31 14:31:13 +08:00
parent ea5ae49bc9
commit 8391ca049f
Signed by: syhily
GPG Key ID: 9D18A22A7DCD5A9B

View File

@ -23,7 +23,7 @@ if (pageNum < 1) {
<!-- This is the layout for listing all the blogs by using pagination. -->
<BaseLayout title={pageNum > 1 ? `第 ${pageNum} 页` : undefined}>
<div class="px-lg-2 px-xxl-5 py-3 py-md-4 py-xxl-5">
<FeaturePosts {posts} />
{pageNum === 1 && <FeaturePosts {posts} />}
<div class="container">
<div class="row">
<PostCards {pageNum} {posts} />