From 82c32e1b6fc241036ef2d27103353054fe08cfbd Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Mon, 27 Sep 2021 21:25:58 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=85=20=E5=BE=AE=E8=B0=83=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/BlogPost.js | 6 +++--- components/SideBar.js | 4 ++-- components/TagItem.js | 4 ++-- layouts/DefaultLayout.js | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/BlogPost.js b/components/BlogPost.js index 2989440a..0136fabc 100644 --- a/components/BlogPost.js +++ b/components/BlogPost.js @@ -4,7 +4,7 @@ import TagItem from '@/components/TagItem' const BlogPost = ({ post }) => { return (
+ className='inline-block border dark:border-gray-600 my-2 md:mx-2 w-full md:max-w-md duration-200 transform hover:scale-105 rounded-3xl bg-white dark:bg-gray-700 dark:hover:bg-gray-600 overflow-hidden'> {/* 封面图 */} {post.page_cover && post.page_cover.length > 1 && ( @@ -14,10 +14,10 @@ const BlogPost = ({ post }) => {
+ className='block my-3 text-2xl leading-tight font-semibold text-black dark:text-gray-100 hover:underline'> {post.title} -

{post.summary}

+

{post.summary}

{post.tags.map(tag => ( diff --git a/components/SideBar.js b/components/SideBar.js index 73c96648..b4e2bfe9 100644 --- a/components/SideBar.js +++ b/components/SideBar.js @@ -46,7 +46,7 @@ const SideBar = ({ tags, currentTag }) => {
{BLOG.title} + className='text-3xl hover:shadow-2xl text-black dark:bg-gray-900 dark:text-gray-300 font-semibold hover:bg-gray-800 hover:text-white p-2 duration-200'>{BLOG.title}
@@ -56,7 +56,7 @@ const SideBar = ({ tags, currentTag }) => { {/* 搜索框 */} -
+
( -

+

{tag}

diff --git a/layouts/DefaultLayout.js b/layouts/DefaultLayout.js index 4e668753..40900e1c 100644 --- a/layouts/DefaultLayout.js +++ b/layouts/DefaultLayout.js @@ -77,7 +77,7 @@ const DefaultLayout = ({ tags, posts, page, currentTag, ...customMeta }) => { {/* */} {/*
*/} -
+