diff --git a/components/ArticleDetail.js b/components/ArticleDetail.js index 6f2746ef..57a6cfb8 100644 --- a/components/ArticleDetail.js +++ b/components/ArticleDetail.js @@ -54,7 +54,7 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n )} {/* 文章Title */} -

+

{' '} {post.title}

@@ -88,9 +88,9 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n -
+

{post.summary} -

+
@@ -99,7 +99,7 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n {/* Notion文章主体 */} -
+
{blockMap && ( { drawerRight.current.handleSwitchVisible() }} /> - - {/* 移动端顶部进度条 */} - {/*
- -
*/} ) } diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js index 0a87e6c9..7685b5de 100644 --- a/components/BlogPostCard.js +++ b/components/BlogPostCard.js @@ -13,12 +13,12 @@ const BlogPostCard = ({ post, tags }) => {
- + {post.title} -

{post.summary}

+

{post.summary}

@@ -41,7 +41,7 @@ const BlogPostCard = ({ post, tags }) => { {post?.page_cover && ( -
+
{post.title}
diff --git a/components/CategoryGroup.js b/components/CategoryGroup.js index 7c2759bb..96a4fea8 100644 --- a/components/CategoryGroup.js +++ b/components/CategoryGroup.js @@ -10,9 +10,9 @@ const CategoryGroup = ({ currentCategory, categories }) => { const selected = currentCategory === category return + ? 'hover:text-white dark:hover:text-white bg-blue-600 text-white ' + : 'dark:text-gray-400 text-gray-500 hover:text-blue-500 dark:hover:text-blue-400') + + ' rounded-xl text-md w-full items-center duration-300 hover:underline px-3 mx-2 cursor-pointer py-2 font-light'}> {category}({categories[category]}) diff --git a/components/LatestPostsGroup.js b/components/LatestPostsGroup.js index 5ead6bd2..27b132c8 100644 --- a/components/LatestPostsGroup.js +++ b/components/LatestPostsGroup.js @@ -32,7 +32,7 @@ const LatestPostsGroup = ({ posts, sliceCount = 5 }) => { const selected = currentPath === `${BLOG.path}/article/${post.slug}` return ( - +
diff --git a/components/MenuButtonGroup.js b/components/MenuButtonGroup.js index d6736511..321dee88 100644 --- a/components/MenuButtonGroup.js +++ b/components/MenuButtonGroup.js @@ -28,8 +28,8 @@ const MenuButtonGroup = ({ allowCollapse = false }) => { if (link.show) { const selected = (router.pathname === link.to) || (router.asPath === link.to) return - +
diff --git a/components/Progress.js b/components/Progress.js index 7a35457f..18e8246a 100644 --- a/components/Progress.js +++ b/components/Progress.js @@ -23,9 +23,9 @@ const Progress = ({ targetRef }) => { return () => document.removeEventListener('scroll', scrollListener) }, [percent]) - return (
+ return (
{percent}%
-
+
) } diff --git a/components/Toc.js b/components/Toc.js index 5818a16d..35e15f56 100644 --- a/components/Toc.js +++ b/components/Toc.js @@ -55,7 +55,7 @@ const Toc = ({ toc, targetRef }) => {
-