- - {p.title} - -
++ + {p.title} + +
-- {p.summary} -
- {/* 搜索结果 */} - {p.results && ( -- {p.results.map(r => ( - {r} - ))} +
+ {p.summary}
- )} -+ {p.results.map(r => ( + {r} + ))} +
+ )} +From 271e4b76be55726592749af4f7be90bd732490fc Mon Sep 17 00:00:00 2001 From: Vixcity <2091283625@qq.com> Date: Tue, 3 Jan 2023 21:10:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.local | 2 +- blog.config.js | 5 +- components/ThemeSwitch.js | 5 +- next.config.js | 3 - package.json | 10 +- pages/404.js | 2 +- pages/[...slug].js | 2 +- styles/notion.css | 6 + themes/example/LayoutArchive.js | 8 +- themes/example/LayoutCategoryIndex.js | 32 +-- themes/example/LayoutTagIndex.js | 38 ++-- themes/example/components/ArticleInfo.js | 63 +++--- themes/example/components/BlogListPage.js | 82 ++++---- themes/example/components/BlogListScroll.js | 60 +++--- .../components/ExampleRecentComments.js | 4 +- themes/example/components/Header.js | 22 +- themes/example/components/Nav.js | 35 +-- themes/example/components/SideBar.js | 80 ++++--- themes/fukasawa/LayoutCategoryIndex.js | 40 ++-- themes/fukasawa/components/ArticleAround.js | 28 ++- themes/fukasawa/components/ArticleDetail.js | 147 ++++++------- themes/fukasawa/components/BlogCard.js | 19 +- themes/fukasawa/components/BlogPostArchive.js | 11 +- themes/fukasawa/components/GroupCategory.js | 21 +- themes/fukasawa/components/GroupMenu.js | 44 ++-- themes/fukasawa/components/Logo.js | 14 +- .../fukasawa/components/PaginationSimple.js | 32 ++- themes/fukasawa/components/TagItem.js | 25 ++- themes/fukasawa/components/TagItemMini.js | 24 ++- themes/hexo/LayoutCategoryIndex.js | 6 +- themes/hexo/LayoutSearch.js | 106 +++++----- themes/hexo/LayoutTag.js | 30 +-- themes/hexo/components/ArticleAdjacent.js | 28 ++- themes/hexo/components/ArticleCopyright.js | 42 ++-- themes/hexo/components/ArticleRecommend.js | 33 ++- themes/hexo/components/BlogPostArchive.js | 13 +- themes/hexo/components/BlogPostCard.js | 42 ++-- themes/hexo/components/Catalog.js | 10 +- themes/hexo/components/CategoryGroup.js | 24 ++- themes/hexo/components/HeaderArticle.js | 12 +- themes/hexo/components/HexoRecentComments.js | 26 +-- themes/hexo/components/LatestPostsGroup.js | 80 ++++--- themes/hexo/components/Logo.js | 12 +- themes/hexo/components/MenuButtonGroupTop.js | 41 ++-- themes/hexo/components/MenuGroupCard.js | 41 ++-- themes/hexo/components/MenuList.js | 46 ++-- themes/hexo/components/NavButtonGroup.js | 23 +- themes/hexo/components/PaginationNumber.js | 84 ++++---- themes/hexo/components/TagItemMini.js | 24 ++- themes/hexo/components/TopNav.js | 22 +- themes/matery/LayoutCategory.js | 42 ++-- themes/matery/LayoutCategoryIndex.js | 36 ++-- themes/matery/LayoutSearch.js | 106 +++++----- themes/matery/LayoutSlug.js | 4 +- themes/matery/components/ArticleCopyright.js | 42 ++-- themes/matery/components/ArticleInfo.js | 62 +++--- themes/matery/components/ArticleRecommend.js | 37 ++-- themes/matery/components/BlogPostArchive.js | 13 +- themes/matery/components/BlogPostCard.js | 137 ++++++------ themes/matery/components/Catalog.js | 6 +- themes/matery/components/CategoryGroup.js | 24 ++- .../matery/components/HexoRecentComments.js | 26 +-- themes/matery/components/LatestPostsGroup.js | 80 ++++--- themes/matery/components/Logo.js | 12 +- .../matery/components/MenuButtonGroupTop.js | 41 ++-- themes/matery/components/MenuGroupCard.js | 41 ++-- themes/matery/components/MenuList.js | 46 ++-- themes/matery/components/NavButtonGroup.js | 23 +- themes/matery/components/PaginationNumber.js | 84 ++++---- themes/matery/components/PaginationSimple.js | 6 +- themes/matery/components/SideBar.js | 66 +++--- themes/matery/components/TagItemMiddle.js | 22 +- themes/matery/components/TagItemMini.js | 18 +- themes/matery/components/TopNav.js | 76 ++++--- themes/medium/LayoutArchive.js | 10 +- themes/medium/LayoutCategoryIndex.js | 40 ++-- themes/medium/components/ArticleAround.js | 28 ++- themes/medium/components/ArticleDetail.js | 98 ++++----- themes/medium/components/BlogPostCard.js | 32 +-- themes/medium/components/BottomMenuBar.js | 6 +- themes/medium/components/CategoryItem.js | 19 +- themes/medium/components/GroupMenu.js | 44 ++-- themes/medium/components/LeftMenuBar.js | 20 +- themes/medium/components/LogoBar.js | 12 +- themes/medium/components/PaginationSimple.js | 32 ++- themes/medium/components/TagItemMini.js | 24 ++- themes/medium/components/TopNavBar.js | 75 ++++--- themes/next/LayoutCategoryIndex.js | 40 ++-- themes/next/components/ArticleCopyright.js | 42 ++-- themes/next/components/ArticleDetail.js | 199 +++++++++--------- themes/next/components/BlogAround.js | 28 ++- themes/next/components/BlogPostArchive.js | 13 +- themes/next/components/BlogPostCard.js | 52 +++-- themes/next/components/CategoryGroup.js | 21 +- themes/next/components/CategoryList.js | 49 +++-- themes/next/components/ContactButton.js | 12 +- themes/next/components/LatestPostsGroup.js | 64 +++--- themes/next/components/Logo.js | 14 +- themes/next/components/MenuButtonGroup.js | 47 +++-- themes/next/components/NextRecentComments.js | 4 +- themes/next/components/PaginationNumber.js | 112 +++++----- themes/next/components/PaginationSimple.js | 6 +- themes/next/components/RecommendPosts.js | 10 +- themes/next/components/SideAreaRight.js | 116 +++++----- themes/next/components/SideBar.js | 112 +++++----- themes/next/components/TagItem.js | 25 ++- themes/next/components/TagItemMini.js | 24 ++- themes/next/components/TopNav.js | 22 +- themes/nobelium/LayoutArchive.js | 10 +- themes/nobelium/LayoutCategoryIndex.js | 32 +-- themes/nobelium/LayoutTagIndex.js | 38 ++-- themes/nobelium/components/BlogListPage.js | 38 ++-- themes/nobelium/components/BlogListScroll.js | 60 +++--- themes/nobelium/components/BlogPost.js | 40 ++-- .../components/ExampleRecentComments.js | 4 +- themes/nobelium/components/Nav.js | 152 +++++++------ themes/nobelium/components/SideBar.js | 80 ++++--- themes/nobelium/components/TagItem.js | 14 +- themes/nobelium/components/Tags.js | 8 +- 119 files changed, 2515 insertions(+), 2072 deletions(-) diff --git a/.env.local b/.env.local index a5695000..2d0e2eba 100644 --- a/.env.local +++ b/.env.local @@ -1,2 +1,2 @@ # 环境变量 @see https://www.nextjs.cn/docs/basic-features/environment-variables -NEXT_PUBLIC_VERSION=3.7.3 +NEXT_PUBLIC_VERSION=3.8.0 diff --git a/blog.config.js b/blog.config.js index 5250e8ef..8be17f3f 100644 --- a/blog.config.js +++ b/blog.config.js @@ -30,6 +30,9 @@ const BLOG = { CUSTOM_FONT_SANS: ['LXGW WenKai'], // 自定义无衬线字体 CUSTOM_FONT_SERIF: ['LXGW WenKai'], // 自定义衬线字体 + // 侧栏布局 是否反转(左变右,右变左) 已支持主题: hexo next medium fukasawa example + LAYOUT_SIDEBAR_REVERSE: false, + // 一个小插件展示你的facebook fan page~ @see https://tw.andys.pro/article/add-facebook-fanpage-notionnext FACEBOOK_PAGE_TITLE: process.env.NEXT_PUBLIC_FACEBOOK_PAGE_TITLE || null, // 邊欄 Facebook Page widget 的標題欄,填''則無標題欄 e.g FACEBOOK 粉絲團' FACEBOOK_PAGE: process.env.NEXT_PUBLIC_FACEBOOK_PAGE || null, // Facebook Page 的連結 e.g https://www.facebook.com/tw.andys.pro @@ -59,7 +62,7 @@ const BLOG = { PREVIEW_TAG_COUNT: 16, // 首页最多展示的标签数量,0为不限制 // 鼠标点击烟花特效 - FIREWORKS: process.env.NEXT_PUBLIC_FIREWORKS || true, // 鼠标点击烟花特效 + FIREWORKS: process.env.NEXT_PUBLIC_FIREWORKS || true, // 开关 // 烟花色彩,感谢 https://github.com/Vixcity 提交的色彩 FIREWORKS_COLOR: ['255, 20, 97', '24, 255, 146', '90, 135, 255', '251, 243, 140'], diff --git a/components/ThemeSwitch.js b/components/ThemeSwitch.js index 17973c04..d9d8b9b6 100644 --- a/components/ThemeSwitch.js +++ b/components/ThemeSwitch.js @@ -19,10 +19,9 @@ export function ThemeSwitch() {
- {p.summary} -
- {/* 搜索结果 */} - {p.results && ( -- {p.results.map(r => ( - {r} - ))} +
+ {p.summary}
- )} -+ {p.results.map(r => ( + {r} + ))} +
+ )} +- {p.summary} -
-+ {p.summary} +
+ + ))} + +