From 77a367d17584a88b71aaaf40282c8a040d160a58 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 5 Feb 2024 18:02:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A2=98=E6=94=AF=E6=8C=81title=20ico?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/example/components/Title.js | 1 - themes/gitbook/components/BlogPostCard.js | 5 +++-- themes/gitbook/components/MenuItemDrop.js | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/themes/example/components/Title.js b/themes/example/components/Title.js index 4308611a..73ca9d7f 100644 --- a/themes/example/components/Title.js +++ b/themes/example/components/Title.js @@ -10,7 +10,6 @@ export const Title = (props) => { const { post } = props const title = post?.title || siteConfig('TITLE') const description = post?.description || siteConfig('AUTHOR') - console.log('post', post) return

{title}

diff --git a/themes/gitbook/components/BlogPostCard.js b/themes/gitbook/components/BlogPostCard.js index a177b700..891e3ea7 100644 --- a/themes/gitbook/components/BlogPostCard.js +++ b/themes/gitbook/components/BlogPostCard.js @@ -2,6 +2,7 @@ import { siteConfig } from '@/lib/config' import Link from 'next/link' import { useRouter } from 'next/router' import { checkContainHttp, sliceUrlFromHttp } from '@/lib/utils' +import NotionIcon from '@/components/NotionIcon' const BlogPostCard = ({ post, className }) => { const router = useRouter() @@ -9,8 +10,8 @@ const BlogPostCard = ({ post, className }) => { const url = checkContainHttp(post.slug) ? sliceUrlFromHttp(post.slug) : `${siteConfig('SUB_PATH', '')}/${post.slug}` return (
-
- {post.title} +
+ {post.title}
diff --git a/themes/gitbook/components/MenuItemDrop.js b/themes/gitbook/components/MenuItemDrop.js index 6c197700..572c9b22 100644 --- a/themes/gitbook/components/MenuItemDrop.js +++ b/themes/gitbook/components/MenuItemDrop.js @@ -11,7 +11,6 @@ export const MenuItemDrop = ({ link }) => { } const hasSubMenu = link?.subMenus?.length > 0 const selected = (router.pathname === link.to) || (router.asPath === link.to) - console.log('link', link?.to) return
  • changeShow(true)} onMouseOut={() => changeShow(false)} > {hasSubMenu &&