feat: only display feature image on the homepage.

This commit is contained in:
Yufan Sheng 2024-10-31 14:31:13 +08:00
parent bef662d5c0
commit 567bb45e1d
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. --> <!-- This is the layout for listing all the blogs by using pagination. -->
<BaseLayout title={pageNum > 1 ? `第 ${pageNum} 页` : undefined}> <BaseLayout title={pageNum > 1 ? `第 ${pageNum} 页` : undefined}>
<div class="px-lg-2 px-xxl-5 py-3 py-md-4 py-xxl-5"> <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="container">
<div class="row"> <div class="row">
<PostCards {pageNum} {posts} /> <PostCards {pageNum} {posts} />