diff --git a/components/Comment.js b/components/Comment.js index 392eb936..2baebfbb 100644 --- a/components/Comment.js +++ b/components/Comment.js @@ -54,6 +54,11 @@ const ValineComponent = dynamic(() => import('@/components/ValineComponent'), { ssr: false }) +/** + * 评论组件 + * @param {*} param0 + * @returns + */ const Comment = ({ frontMatter, className }) => { const router = useRouter() @@ -70,7 +75,7 @@ const Comment = ({ frontMatter, className }) => { } return ( -
+
{BLOG.COMMENT_TWIKOO_ENV_ID && (
diff --git a/themes/gitbook/components/BlogPostCard.js b/themes/gitbook/components/BlogPostCard.js index bb47fcc2..15ff21ef 100644 --- a/themes/gitbook/components/BlogPostCard.js +++ b/themes/gitbook/components/BlogPostCard.js @@ -8,7 +8,7 @@ const BlogPostCard = ({ post, className }) => { const currentSelected = router.asPath.split('?')[0] === '/' + post.slug return (
-
+
{post.title} diff --git a/themes/gitbook/components/NavPostItem.js b/themes/gitbook/components/NavPostItem.js index a4cd7178..66ffa6dd 100644 --- a/themes/gitbook/components/NavPostItem.js +++ b/themes/gitbook/components/NavPostItem.js @@ -21,7 +21,7 @@ const NavPostItem = (props) => { return <>
+ className='select-none flex justify-between text-sm font-sans cursor-pointer p-2 hover:bg-gray-50 rounded-md dark:hover:bg-gray-600' key={group?.category}> {group?.category}