diff --git a/themes/simple/components/BlogItem.js b/themes/simple/components/BlogItem.js index 9b5d1d04..947baf63 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}
}