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 }) => { {/* */} {/*
*/} -
+