diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js index 54e18c71..b30cb5db 100644 --- a/components/BlogPostCard.js +++ b/components/BlogPostCard.js @@ -6,11 +6,11 @@ import React from 'react' const BlogPostCard = ({ post }) => { return (
+ className='animate__animated animate__fadeIn animate__faster xl:flex shadow-card border dark:border-gray-600 mb-6 w-full bg-white bg-opacity-80 dark:bg-gray-800 dark:hover:bg-gray-700 overflow-hidden'> {/* 封面图 */} {post.page_cover && post.page_cover.length > 1 && ( - {post.title} )} @@ -18,7 +18,7 @@ const BlogPostCard = ({ post }) => {
{post.title}
+ className='cursor-pointer my-3 text-xl leading-tight font-bold text-black dark:text-gray-100 hover:underline'>{post.title}

{post.summary}

diff --git a/components/BlogPostListScroll.js b/components/BlogPostListScroll.js index 3755f663..f62f2983 100644 --- a/components/BlogPostListScroll.js +++ b/components/BlogPostListScroll.js @@ -53,27 +53,17 @@ const BlogPostListScroll = ({ posts = [], tags, currentSearch, currentCategory, } else { return
- {currentCategory && ( -
-
{currentCategory}
-
- )} - - {currentSearch && ( -
-
关键字:{currentSearch}
-
- )} - - {currentTag && ( -
-
- {currentTag}
-
- )} +
+ {currentCategory && ( +
{currentCategory}
+ )} + {currentSearch && ( +
关键字:{currentSearch}
+ )} + {currentTag && ( +
{currentTag}
+ )} +
{/* 文章列表 */}