From 92f45305c1e34518f0da7c6566b3aeb4e0cca109 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Tue, 12 Mar 2024 13:44:13 +0800 Subject: [PATCH] =?UTF-8?q?simple=20=E4=B8=BB=E9=A2=98=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/simple/components/BlogItem.js | 12 ++++++------ themes/simple/components/MenuItemCollapse.js | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/themes/simple/components/BlogItem.js b/themes/simple/components/BlogItem.js index 87e2d879..4dd59082 100644 --- a/themes/simple/components/BlogItem.js +++ b/themes/simple/components/BlogItem.js @@ -9,12 +9,12 @@ import NotionIcon from '@/components/NotionIcon' import NotionPage from '@/components/NotionPage' export const BlogItem = props => { - const { post } = props - const showPageCover = siteConfig('SIMPLE_POST_COVER_ENABLE', false, CONFIG) - const url = checkContainHttp(post.slug) ? sliceUrlFromHttp(post.slug) : `${siteConfig('SUB_PATH', '')}/${post.slug}` - const showPreview = siteConfig('POST_LIST_PREVIEW') && post.blockMap + const { post } = props + const showPageCover = siteConfig('SIMPLE_POST_COVER_ENABLE', false, CONFIG) + const url = checkContainHttp(post.slug) ? sliceUrlFromHttp(post.slug) : `${siteConfig('SUB_PATH', '')}/${post.slug}` + const showPreview = siteConfig('POST_LIST_PREVIEW') && post.blockMap - return
+ return
{/* 文章标题 */}
@@ -74,7 +74,7 @@ export const BlogItem = props => {
- + Continue Reading
diff --git a/themes/simple/components/MenuItemCollapse.js b/themes/simple/components/MenuItemCollapse.js index 48107abf..35371cc8 100644 --- a/themes/simple/components/MenuItemCollapse.js +++ b/themes/simple/components/MenuItemCollapse.js @@ -30,13 +30,13 @@ export const MenuItemCollapse = (props) => {
{!hasSubMenu && - {link?.icon && }{link?.name} + className="items-center flex justify-between pl-2 pr-4 dark:text-gray-200 no-underline tracking-widest pb-1"> + {link?.icon && }{link?.name} } {hasSubMenu &&
- {link?.icon && }{link?.name} + className="items-center flex justify-between pl-2 pr-4 cursor-pointer dark:text-gray-200 no-underline tracking-widest pb-1"> + {link?.icon && }{link?.name}
}