From 066c7d5c1c5c1c0784db0ccc4dcc3450fd680f65 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Thu, 3 Mar 2022 16:21:52 +0800 Subject: [PATCH] =?UTF-8?q?Hexo=20=E9=80=82=E9=85=8D=E5=A4=9C=E9=97=B4?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/Hexo/LayoutBase.js | 2 +- themes/Hexo/LayoutCategoryIndex.js | 2 +- themes/Hexo/LayoutSlug.js | 2 +- themes/Hexo/components/ArticleDetail.js | 4 +--- themes/Hexo/components/BlogPostCard.js | 2 +- themes/Hexo/components/Card.js | 2 +- themes/Hexo/components/Catalog.js | 2 +- themes/Hexo/components/HeaderArticle.js | 2 +- themes/Hexo/components/MenuButtonGroup.js | 2 +- themes/Hexo/components/SearchInput.js | 10 +++++----- themes/Hexo/components/SideRight.js | 2 +- themes/Hexo/components/TagItemMini.js | 8 ++++---- themes/Hexo/components/TopNav.js | 2 +- themes/index.js | 2 +- 14 files changed, 21 insertions(+), 23 deletions(-) diff --git a/themes/Hexo/LayoutBase.js b/themes/Hexo/LayoutBase.js index 7c25dbf7..96779c6f 100644 --- a/themes/Hexo/LayoutBase.js +++ b/themes/Hexo/LayoutBase.js @@ -38,7 +38,7 @@ const LayoutBase = (props) => { return () => document.removeEventListener('scroll', scrollListener) }, [show]) - return (
+ return (
diff --git a/themes/Hexo/LayoutCategoryIndex.js b/themes/Hexo/LayoutCategoryIndex.js index 1eadfc7d..7b0e35a0 100644 --- a/themes/Hexo/LayoutCategoryIndex.js +++ b/themes/Hexo/LayoutCategoryIndex.js @@ -14,7 +14,7 @@ export const LayoutCategoryIndex = props => { } return ( - +
{locale.COMMON.CATEGORY}: diff --git a/themes/Hexo/LayoutSlug.js b/themes/Hexo/LayoutSlug.js index ceb7322b..901dc676 100644 --- a/themes/Hexo/LayoutSlug.js +++ b/themes/Hexo/LayoutSlug.js @@ -53,7 +53,7 @@ export const LayoutSlug = props => { showTag={false} floatSlot={floatSlot} > -
+
diff --git a/themes/Hexo/components/ArticleDetail.js b/themes/Hexo/components/ArticleDetail.js index e006309d..02a441ef 100644 --- a/themes/Hexo/components/ArticleDetail.js +++ b/themes/Hexo/components/ArticleDetail.js @@ -34,9 +34,7 @@ export default function ArticleDetail ({ post, recommendPosts, prev, next }) { }) return (
-
+
{/* Notion文章主体 */}
diff --git a/themes/Hexo/components/BlogPostCard.js b/themes/Hexo/components/BlogPostCard.js index 6cba3568..3c75b9d9 100644 --- a/themes/Hexo/components/BlogPostCard.js +++ b/themes/Hexo/components/BlogPostCard.js @@ -9,7 +9,7 @@ import CONFIG_HEXO from '../config_hexo' const BlogPostCard = ({ post, showSummary }) => { const showPreview = CONFIG_HEXO.POST_LIST_PREVIEW && post.blockMap return ( -
+
diff --git a/themes/Hexo/components/Card.js b/themes/Hexo/components/Card.js index 8cb8123c..013301be 100644 --- a/themes/Hexo/components/Card.js +++ b/themes/Hexo/components/Card.js @@ -1,7 +1,7 @@ const Card = ({ children, headerSlot, className }) => { return
<>{headerSlot} -
+
{children}
diff --git a/themes/Hexo/components/Catalog.js b/themes/Hexo/components/Catalog.js index 59942526..4c98b21c 100644 --- a/themes/Hexo/components/Catalog.js +++ b/themes/Hexo/components/Catalog.js @@ -63,7 +63,7 @@ const Catalog = ({ toc }) => {
-
+
{post.category && <> diff --git a/themes/Hexo/components/MenuButtonGroup.js b/themes/Hexo/components/MenuButtonGroup.js index a968b800..cf7af3cd 100644 --- a/themes/Hexo/components/MenuButtonGroup.js +++ b/themes/Hexo/components/MenuButtonGroup.js @@ -8,7 +8,7 @@ const MenuButtonGroup = (props) => { const { postCount, customNav } = props const { locale } = useGlobal() const router = useRouter() - const archiveSlot =
{postCount}
+ const archiveSlot =
{postCount}
let links = [ { icon: 'fas fa-home', name: locale.NAV.INDEX, to: '/' || '/', show: true }, diff --git a/themes/Hexo/components/SearchInput.js b/themes/Hexo/components/SearchInput.js index 0912c374..31074800 100644 --- a/themes/Hexo/components/SearchInput.js +++ b/themes/Hexo/components/SearchInput.js @@ -52,7 +52,7 @@ const SearchInput = ({ currentTag, currentSearch, cRef }) => { { defaultValue={currentSearch} /> -
{ handleSearch(searchKey) }}> - +
{(searchKey && searchKey.length && -
- +
+
)}
diff --git a/themes/Hexo/components/SideRight.js b/themes/Hexo/components/SideRight.js index 3aafeb80..371e8150 100644 --- a/themes/Hexo/components/SideRight.js +++ b/themes/Hexo/components/SideRight.js @@ -40,7 +40,7 @@ export default function SideRight (props) { className='rounded-full' />
-
{BLOG.TITLE}
+
{BLOG.TITLE}
diff --git a/themes/Hexo/components/TagItemMini.js b/themes/Hexo/components/TagItemMini.js index 63adeb12..ed0d1d22 100644 --- a/themes/Hexo/components/TagItemMini.js +++ b/themes/Hexo/components/TagItemMini.js @@ -2,12 +2,12 @@ import Link from 'next/link' const TagItemMini = ({ tag, selected = false }) => { return -
-
{selected && } {tag.name + (tag.count ? `(${tag.count})` : '')}
+ : `text-gray-600 hover:shadow-xl dark:border-gray-400 notion-${tag.color}_background `}` }> +
{selected && } {tag.name + (tag.count ? `(${tag.count})` : '')}
} diff --git a/themes/Hexo/components/TopNav.js b/themes/Hexo/components/TopNav.js index fe53015b..c021183f 100644 --- a/themes/Hexo/components/TopNav.js +++ b/themes/Hexo/components/TopNav.js @@ -90,7 +90,7 @@ const TopNav = ({ tags, currentTag, categories, currentCategory, postCount }) => {/* 导航栏 */} -