From fb96bc7b9071458de3335502707046efea7215d8 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Thu, 21 Nov 2024 15:37:05 +0800 Subject: [PATCH] =?UTF-8?q?Magzine=E4=B8=BB=E9=A2=98=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/magzine/components/ArticleInfo.js | 2 +- themes/magzine/components/Footer.js | 3 +- themes/magzine/components/Header.js | 8 +- themes/magzine/components/MenuItemCollapse.js | 10 +- themes/magzine/components/PostItemCardTop.js | 40 ++-- .../magzine/components/PostListRecommend.js | 3 +- themes/magzine/components/TopNavBar.js | 109 ----------- themes/magzine/index.js | 172 +++++++++--------- 8 files changed, 126 insertions(+), 221 deletions(-) delete mode 100644 themes/magzine/components/TopNavBar.js diff --git a/themes/magzine/components/ArticleInfo.js b/themes/magzine/components/ArticleInfo.js index ba50b384c44..782f2e952e2 100644 --- a/themes/magzine/components/ArticleInfo.js +++ b/themes/magzine/components/ArticleInfo.js @@ -10,7 +10,7 @@ import TagItemMini from './TagItemMini' * @returns */ export default function ArticleInfo(props) { - const { post, siteInfo } = props + const { post } = props return ( <> diff --git a/themes/magzine/components/Footer.js b/themes/magzine/components/Footer.js index c5db92e1510..47a11a207bf 100644 --- a/themes/magzine/components/Footer.js +++ b/themes/magzine/components/Footer.js @@ -8,6 +8,7 @@ import PoweredBy from '@/components/PoweredBy' import { siteConfig } from '@/lib/config' import { useGlobal } from '@/lib/global' import Link from 'next/link' +import CONFIG from '../config' import SocialButton from './SocialButton' /** @@ -15,7 +16,7 @@ import SocialButton from './SocialButton' */ const Footer = ({ title }) => { const { siteInfo } = useGlobal() - const MAGZINE_FOOTER_LINKS = siteConfig('MAGZINE_FOOTER_LINKS', []) + const MAGZINE_FOOTER_LINKS = siteConfig('MAGZINE_FOOTER_LINKS', [], CONFIG) return (