From 5bb91255c23f43d9643527f4f2e2690aa435a19a Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 15 Mar 2023 16:45:38 +0800 Subject: [PATCH] =?UTF-8?q?matery=20=E4=B8=BB=E9=A2=98=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/matery/components/BlogPostCard.js | 18 ++++-------------- themes/matery/components/BlogPostListPage.js | 4 ++-- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/themes/matery/components/BlogPostCard.js b/themes/matery/components/BlogPostCard.js index 980141eb..b3941fdc 100644 --- a/themes/matery/components/BlogPostCard.js +++ b/themes/matery/components/BlogPostCard.js @@ -20,10 +20,10 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => { data-aos-delay={delay} data-aos-once="true" data-aos-anchor-placement="top-bottom" - className="w-full mb-4 h-full overflow-auto shadow-md border dark:border-black rounded-xl bg-white dark:bg-hexo-black-gray"> + className="w-full mb-4 overflow-auto shadow-md border dark:border-black rounded-xl bg-white dark:bg-hexo-black-gray"> {/* 固定高度 ,空白用图片拉升填充 */} -
+
{/* 头部图片 填充卡片 */} {showPageCover && ( @@ -36,22 +36,12 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => { alt={post.title} className="opacity-50 h-full w-full hover:scale-125 rounded-t-md transform object-cover duration-500" /> - {/*
- {post.title} -
*/} - {post.title} + {post.title}
)} + {/* 文字描述 */}
{/* 描述 */}
diff --git a/themes/matery/components/BlogPostListPage.js b/themes/matery/components/BlogPostListPage.js index 2b716581..4a041aa7 100644 --- a/themes/matery/components/BlogPostListPage.js +++ b/themes/matery/components/BlogPostListPage.js @@ -21,9 +21,9 @@ const BlogPostListPage = ({ page = 1, posts = [], postCount, siteInfo }) => {
{/* 文章列表 */} -
+
{posts.map(post => ( - +
))}
{showPagination && }