From e1ab7536980f6c19ee366ca7e565e5124d77614d Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Thu, 1 Feb 2024 21:40:25 +0800 Subject: [PATCH] =?UTF-8?q?nav=20=E5=8A=A0=E5=85=A5=E5=BD=92=E6=A1=A3?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/nav/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/themes/nav/index.js b/themes/nav/index.js index b6830314..b7e8b796 100755 --- a/themes/nav/index.js +++ b/themes/nav/index.js @@ -32,6 +32,7 @@ import { MenuItem } from './components/MenuItem' import LogoBar from './components/LogoBar' import { siteConfig } from '@/lib/config' import Live2D from '@/components/Live2D' +import BlogArchiveItem from './components/BlogArchiveItem' const WWAds = dynamic(() => import('@/components/WWAds'), { ssr: false }) @@ -269,7 +270,14 @@ const LayoutSearch = (props) => { * @returns */ const LayoutArchive = (props) => { - return <> + const { archivePosts } = props + return (<> +
+ {Object.keys(archivePosts).map(archiveTitle => ( + + ))} +
+ ) } /**