From 5fe62df504ee1bce4dff8980a0306bb19bbe4eef Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 13 Mar 2023 21:02:35 +0800 Subject: [PATCH] =?UTF-8?q?hexo=20=E5=B0=81=E9=9D=A2=E5=9B=BE=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/components/BlogPostCard.js | 14 ++++++++------ themes/hexo/components/BlogPostCardInfo.js | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/themes/hexo/components/BlogPostCard.js b/themes/hexo/components/BlogPostCard.js index eeb6e0b2..85041c67 100644 --- a/themes/hexo/components/BlogPostCard.js +++ b/themes/hexo/components/BlogPostCard.js @@ -17,7 +17,7 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
{/* 文字内容 */} @@ -27,7 +27,7 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => { data-aos-delay={delay} data-aos-once="true" data-aos-anchor-placement="top-bottom" - className={`flex flex-col lg:p-6 p-4 ${showPageCover ? 'md:w-7/12 w-full ' : 'w-full'}`}> + className={`flex flex-col justify-start lg:p-6 p-4 md:max-h-60 ${showPageCover ? 'md:w-7/12 w-full ' : 'w-full'}`}> @@ -35,15 +35,17 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => { {/* 图片封面 */} {showPageCover && !showPreview && post?.page_cover && ( -
+
{/* eslint-disable-next-line @next/next/no-img-element */} - {post.title} + className="w-full relative cursor-pointer object-cover duration-200 hover:scale-125 " + /> */} +
+ {/*
{ {/* 摘要 */} {(!showPreview || showSummary) && !post.results && ( -

+

{post.summary}

)}