From 6b59677c4e3faf660d491370cb99427a3cec736a Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 20 Jun 2023 17:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/components/MenuListTop.js | 6 +++--- themes/simple/components/BlogListPage.js | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/themes/hexo/components/MenuListTop.js b/themes/hexo/components/MenuListTop.js index 39c64ed3..ff40d24e 100644 --- a/themes/hexo/components/MenuListTop.js +++ b/themes/hexo/components/MenuListTop.js @@ -9,9 +9,9 @@ export const MenuListTop = (props) => { const { locale } = useGlobal() let links = [ - { icon: 'fa-solid fa-house', name: locale.NAV.INDEX, to: '/', show: CONFIG_HEXO.MENU_INDEX }, - { icon: 'fas fa-search', name: locale.NAV.SEARCH, to: '/search', show: CONFIG_HEXO.MENU_SEARCH }, - { icon: 'fas fa-archive', name: locale.NAV.ARCHIVE, to: '/archive', show: CONFIG_HEXO.MENU_ARCHIVE } + { id: 1, icon: 'fa-solid fa-house', name: locale.NAV.INDEX, to: '/', show: CONFIG_HEXO.MENU_INDEX }, + { id: 2, icon: 'fas fa-search', name: locale.NAV.SEARCH, to: '/search', show: CONFIG_HEXO.MENU_SEARCH }, + { id: 3, icon: 'fas fa-archive', name: locale.NAV.ARCHIVE, to: '/archive', show: CONFIG_HEXO.MENU_ARCHIVE } // { icon: 'fas fa-folder', name: locale.COMMON.CATEGORY, to: '/category', show: CONFIG_HEXO.MENU_CATEGORY }, // { icon: 'fas fa-tag', name: locale.COMMON.TAGS, to: '/tag', show: CONFIG_HEXO.MENU_TAG } ] diff --git a/themes/simple/components/BlogListPage.js b/themes/simple/components/BlogListPage.js index ea02a2b4..c8321d33 100644 --- a/themes/simple/components/BlogListPage.js +++ b/themes/simple/components/BlogListPage.js @@ -4,7 +4,6 @@ import { useRouter } from 'next/router' import Link from 'next/link' import { BlogItem } from './BlogItem' import { AdSlot } from '@/components/GoogleAdsense' -import { Fragment } from 'react' export const BlogListPage = props => { const { page = 1, posts, postCount } = props @@ -20,10 +19,10 @@ export const BlogListPage = props => {
- {posts?.map((p, index) => (<> + {posts?.map((p, index) => (
{(index + 1) % 3 === 0 && } - - ))} + +
))}