From cd86d91f6d94dbee0c0e20a5abfff7c0f810994a Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Sat, 14 Sep 2024 15:45:27 +0800 Subject: [PATCH] =?UTF-8?q?magzine=E4=B8=BB=E9=A2=98=E5=BE=AE=E8=B0=83?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/magzine/components/ArticleAround.js | 32 ------- themes/magzine/components/ArticleInfo.js | 4 +- themes/magzine/components/Footer.js | 62 +++++++------ themes/magzine/components/PostNavAround.js | 101 +++++++++++++++++++++ themes/magzine/components/Swiper.js | 4 +- themes/magzine/components/TagItemMini.js | 2 +- themes/magzine/index.js | 28 +++--- 7 files changed, 151 insertions(+), 82 deletions(-) delete mode 100644 themes/magzine/components/ArticleAround.js create mode 100644 themes/magzine/components/PostNavAround.js diff --git a/themes/magzine/components/ArticleAround.js b/themes/magzine/components/ArticleAround.js deleted file mode 100644 index 95b6f83f..00000000 --- a/themes/magzine/components/ArticleAround.js +++ /dev/null @@ -1,32 +0,0 @@ -import Link from 'next/link' - -/** - * 上一篇,下一篇文章 - * @param {prev,next} param0 - * @returns - */ -export default function ArticleAround ({ prev, next }) { - if (!prev || !next) { - return <> - } - return ( -
- - - {prev.title} - - - - {next.title} - - - -
- ) -} diff --git a/themes/magzine/components/ArticleInfo.js b/themes/magzine/components/ArticleInfo.js index f41654b0..ba50b384 100644 --- a/themes/magzine/components/ArticleInfo.js +++ b/themes/magzine/components/ArticleInfo.js @@ -15,13 +15,13 @@ export default function ArticleInfo(props) { return ( <>
-
+
{siteConfig('MAGZINE_POST_LIST_CATEGORY') && ( )}
{siteConfig('MAGZINE_POST_LIST_TAG') && post?.tagItems?.map(tag => ( diff --git a/themes/magzine/components/Footer.js b/themes/magzine/components/Footer.js index 9cd2fa0f..c4e73f61 100644 --- a/themes/magzine/components/Footer.js +++ b/themes/magzine/components/Footer.js @@ -18,7 +18,9 @@ const Footer = ({ title }) => { const MAGZINE_FOOTER_LINKS = siteConfig('MAGZINE_FOOTER_LINKS', []) return ( -