From b81976edc1b659fe41239a932e69b84084531fec Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 24 Dec 2022 23:22:26 +0800 Subject: [PATCH] matery --- themes/matery/LayoutSlug.js | 6 +- themes/matery/components/ArticleAdjacent.js | 6 +- themes/matery/components/BlogPostCard.js | 6 +- themes/matery/components/BlogPostListPage.js | 2 +- themes/matery/components/TopNav.js | 112 +++++++++---------- 5 files changed, 64 insertions(+), 68 deletions(-) diff --git a/themes/matery/LayoutSlug.js b/themes/matery/LayoutSlug.js index 862a4225..0e0f1cb3 100644 --- a/themes/matery/LayoutSlug.js +++ b/themes/matery/LayoutSlug.js @@ -45,7 +45,8 @@ export const LayoutSlug = props => { showTag={false} floatSlot={floatSlot} > -
+
+
{lock && } {!lock &&
@@ -81,9 +82,10 @@ export const LayoutSlug = props => {
- {post.type === 'Post' && } + {post.type === 'Post' && }
+
diff --git a/themes/matery/components/ArticleAdjacent.js b/themes/matery/components/ArticleAdjacent.js index 34dfc921..9430ed2b 100644 --- a/themes/matery/components/ArticleAdjacent.js +++ b/themes/matery/components/ArticleAdjacent.js @@ -10,14 +10,10 @@ export default function ArticleAdjacent ({ prev, next }) { if (!prev || !next || !CONFIG_MATERY.ARTICLE_ADJACENT) { return <> } - return
+ return
-
-
-
-
} diff --git a/themes/matery/components/BlogPostCard.js b/themes/matery/components/BlogPostCard.js index a9fa5066..afc84fb4 100644 --- a/themes/matery/components/BlogPostCard.js +++ b/themes/matery/components/BlogPostCard.js @@ -13,16 +13,14 @@ const BlogPostCard = ({ post, showSummary }) => { {CONFIG_MATERY.POST_LIST_COVER && !showPreview && post?.page_cover && !post.results && ( -
+
{/* eslint-disable-next-line @next/next/no-img-element */} {post.title} {post.title} - - {/* {post.title} */}
)} diff --git a/themes/matery/components/BlogPostListPage.js b/themes/matery/components/BlogPostListPage.js index 56b91642..64b77f96 100644 --- a/themes/matery/components/BlogPostListPage.js +++ b/themes/matery/components/BlogPostListPage.js @@ -21,7 +21,7 @@ const BlogPostListPage = ({ page = 1, posts = [], postCount }) => {
{/* 文章列表 */} -
+
{posts.map(post => ( ))} diff --git a/themes/matery/components/TopNav.js b/themes/matery/components/TopNav.js index 6684c3c6..f12f833d 100644 --- a/themes/matery/components/TopNav.js +++ b/themes/matery/components/TopNav.js @@ -90,70 +90,70 @@ const TopNav = props => { } const searchDrawerSlot = <> - { categories && ( -
-
-
{locale.COMMON.CATEGORY}
- - - {locale.COMMON.MORE} - - -
- -
- ) } + {categories && ( +
+
+
{locale.COMMON.CATEGORY}
+ + + {locale.COMMON.MORE} + + +
+ +
+ )} - { tags && ( -
-
-
{locale.COMMON.TAGS}
- - - {locale.COMMON.MORE} - - -
-
- -
-
- ) } + {tags && ( +
+
+
{locale.COMMON.TAGS}
+ + + {locale.COMMON.MORE} + + +
+
+ +
+
+ )} return (
- + + + {/* 导航栏 */} + ) +
) } export default TopNav