-
-
- {locale.COMMON.LATEST_POSTS}
+ return (
+ <>
+
+
+
+ {locale.COMMON.LATEST_POSTS}
+
-
- {latestPosts.map(post => {
- const selected = currentPath === `${BLOG.SUB_PATH}/${post.slug}`
- const headerImage = post?.page_cover
- ? `url("${post.page_cover}")`
- : `url("${siteInfo?.pageCover}")`
+ {latestPosts.map(post => {
+ const selected = currentPath === `${BLOG.SUB_PATH}/${post.slug}`
+ const headerImage = post?.page_cover
+ ? `url("${post.page_cover}")`
+ : `url("${siteInfo?.pageCover}")`
- return (
- (
-
-
-
-
-
{post.title}
-
{post.lastEditedTime}
-
-
-
- )
- );
- })}
- >;
+
+
+
+
+
{post.title}
+
{post.lastEditedTime}
+
+
+
+
+ )
+ })}
+ >
+ )
}
export default LatestPostsGroup
diff --git a/themes/hexo/components/Logo.js b/themes/hexo/components/Logo.js
index 61408026..2bfc6ea7 100644
--- a/themes/hexo/components/Logo.js
+++ b/themes/hexo/components/Logo.js
@@ -4,12 +4,10 @@ import React from 'react'
const Logo = props => {
const { siteInfo } = props
- return (
-
-
-
{siteInfo?.title || BLOG.TITLE}
-
-
- );
+ return
+
+
{siteInfo?.title || BLOG.TITLE}
+
+
}
export default Logo
diff --git a/themes/hexo/components/MenuButtonGroupTop.js b/themes/hexo/components/MenuButtonGroupTop.js
index f6ae7a29..5d455c0b 100644
--- a/themes/hexo/components/MenuButtonGroupTop.js
+++ b/themes/hexo/components/MenuButtonGroupTop.js
@@ -18,30 +18,21 @@ const MenuButtonGroupTop = (props) => {
links = links.concat(customNav)
}
- return (
-
- );
+ return
}
export default MenuButtonGroupTop
diff --git a/themes/hexo/components/MenuGroupCard.js b/themes/hexo/components/MenuGroupCard.js
index 1641023a..57c8375b 100644
--- a/themes/hexo/components/MenuGroupCard.js
+++ b/themes/hexo/components/MenuGroupCard.js
@@ -16,30 +16,21 @@ const MenuGroupCard = (props) => {
{ name: locale.COMMON.TAGS, to: '/tag', slot: tagSlot, show: CONFIG_HEXO.MENU_TAG }
]
- return (
-
- );
+ return
}
export default MenuGroupCard
diff --git a/themes/hexo/components/MenuList.js b/themes/hexo/components/MenuList.js
index e5579a6a..bbab4a1b 100644
--- a/themes/hexo/components/MenuList.js
+++ b/themes/hexo/components/MenuList.js
@@ -21,32 +21,24 @@ const MenuList = (props) => {
links = links.concat(customNav)
}
- return (
-
- );
+ return
}
export default MenuList
diff --git a/themes/hexo/components/NavButtonGroup.js b/themes/hexo/components/NavButtonGroup.js
index d490cd7b..f15b992d 100644
--- a/themes/hexo/components/NavButtonGroup.js
+++ b/themes/hexo/components/NavButtonGroup.js
@@ -13,21 +13,12 @@ const NavButtonGroup = (props) => {
return <>>
}
- return (
-
- );
+ return
}
export default NavButtonGroup
diff --git a/themes/hexo/components/PaginationNumber.js b/themes/hexo/components/PaginationNumber.js
index 0eb0b001..fba781e2 100644
--- a/themes/hexo/components/PaginationNumber.js
+++ b/themes/hexo/components/PaginationNumber.js
@@ -16,57 +16,51 @@ const PaginationNumber = ({ page, totalPage }) => {
const pages = generatePages(pagePrefix, page, currentPage, totalPage)
return (
-
- {/* 上一页 */}
-
+
+ {/* 上一页 */}
+
+
+
+
+
-
+ {pages}
-
-
- {pages}
-
- {/* 下一页 */}
-
-
-
-
-
-
- );
+ {/* 下一页 */}
+
+
+
+
+
+
+ )
}
function getPageElement(page, currentPage, pagePrefix) {
return (
- (
-
- {page}
-
- )
- );
+
+
+ {page}
+
+
+ )
}
function generatePages(pagePrefix, page, currentPage, totalPage) {
diff --git a/themes/hexo/components/TagItemMini.js b/themes/hexo/components/TagItemMini.js
index 32221ea4..aa3388ec 100644
--- a/themes/hexo/components/TagItemMini.js
+++ b/themes/hexo/components/TagItemMini.js
@@ -1,21 +1,15 @@
import Link from 'next/link'
const TagItemMini = ({ tag, selected = false }) => {
- return (
-
-
-
{selected && } {tag.name + (tag.count ? `(${tag.count})` : '')}
-
-
- );
+ return
+
+ {selected && } {tag.name + (tag.count ? `(${tag.count})` : '')}
+
+
}
export default TagItemMini
diff --git a/themes/hexo/components/TopNav.js b/themes/hexo/components/TopNav.js
index 6555a27f..fec458eb 100644
--- a/themes/hexo/components/TopNav.js
+++ b/themes/hexo/components/TopNav.js
@@ -90,13 +90,10 @@ const TopNav = props => {
@@ -107,13 +104,10 @@ const TopNav = props => {
diff --git a/themes/matery/LayoutCategory.js b/themes/matery/LayoutCategory.js
index 7b57c3c0..d7c72799 100644
--- a/themes/matery/LayoutCategory.js
+++ b/themes/matery/LayoutCategory.js
@@ -7,32 +7,30 @@ import HeaderArticle from './components/HeaderArticle'
export const LayoutCategory = props => {
const { category, categories } = props
- return (
-
} >
+ return
} >
-
+
-
+
-
- {categories.map(e => {
- const selected = e.name === category
- return (
-
-
-
- {e.name}({e.count})
-
-
- );
- })}
-
+
+ {categories.map(e => {
+ const selected = e.name === category
+ return (
+
+
+
+ {e.name}({e.count})
+
+
+ )
+ })}
-
- {BLOG.POST_LIST_STYLE === 'page' ?
:
}
-
-
- );
+ {BLOG.POST_LIST_STYLE === 'page' ?
:
}
+
+
+
+
}
diff --git a/themes/matery/LayoutCategoryIndex.js b/themes/matery/LayoutCategoryIndex.js
index ab98d3a4..99c0f582 100644
--- a/themes/matery/LayoutCategoryIndex.js
+++ b/themes/matery/LayoutCategoryIndex.js
@@ -6,27 +6,27 @@ export const LayoutCategoryIndex = props => {
const { categories } = props
return (
-
} >
+
} >
-
+
-
+
-
- {categories.map(e => {
- return (
-
-
-
- {e.name}({e.count})
-
-
- )
- })}
-
-
+
+ {categories.map(e => {
+ return (
+
+
+
+ {e.name}({e.count})
+
+
+ )
+ })}
+
+
-
-
+
+
)
}
diff --git a/themes/matery/LayoutSearch.js b/themes/matery/LayoutSearch.js
index db528a29..bed5cefc 100644
--- a/themes/matery/LayoutSearch.js
+++ b/themes/matery/LayoutSearch.js
@@ -38,62 +38,62 @@ export const LayoutSearch = props => {
}, 100)
})
return (
-
- {!currentSearch && <>
-
-
- {/* 分类 */}
-
-
-
- {locale.COMMON.CATEGORY}:
-
-
- {categories?.map(category => {
- return (
-
-
+ {!currentSearch && <>
+
+
+ {/* 分类 */}
+
+
+
+ {locale.COMMON.CATEGORY}:
+
+
+ {categories?.map(category => {
+ return (
+
-
- {category.name}({category.count})
+
+
+ {category.name}({category.count})
+
+
+ )
+ })}
+
+
+ {/* 标签 */}
+
+
+
+ {locale.COMMON.TAGS}:
+
+
-
- {/* 标签 */}
-
-
-
- {locale.COMMON.TAGS}:
-
-
-
-
- >}
+ )
+ })}
+
+
+
+ >}
- {currentSearch && <>
-
- {BLOG.POST_LIST_STYLE === 'page' ? : }
-
- >}
+ {currentSearch && <>
+
+ {BLOG.POST_LIST_STYLE === 'page' ? : }
+
+ >}
-
+
)
}
diff --git a/themes/matery/LayoutSlug.js b/themes/matery/LayoutSlug.js
index 6e95ff52..a6a79e7b 100644
--- a/themes/matery/LayoutSlug.js
+++ b/themes/matery/LayoutSlug.js
@@ -45,7 +45,7 @@ export const LayoutSlug = props => {
>
-
+
{lock &&
}
@@ -112,7 +112,7 @@ export const LayoutSlug = props => {
data-aos-once="false"
data-aos-anchor-placement="top-center"
className='relative h-full'>
-
+
diff --git a/themes/matery/components/ArticleCopyright.js b/themes/matery/components/ArticleCopyright.js
index e5b56411..e3456747 100644
--- a/themes/matery/components/ArticleCopyright.js
+++ b/themes/matery/components/ArticleCopyright.js
@@ -16,26 +16,24 @@ export default function ArticleCopyright () {
})
const { locale } = useGlobal()
- return (
-
-
- -
- {locale.COMMON.AUTHOR}:
-
- {BLOG.AUTHOR}
-
-
- -
- {locale.COMMON.URL}:
-
- {path}
-
-
- -
- {locale.COMMON.COPYRIGHT}:
- {locale.COMMON.COPYRIGHT_NOTICE}
-
-
-
- );
+ return
+
+ -
+ {locale.COMMON.AUTHOR}:
+
+ {BLOG.AUTHOR}
+
+
+ -
+ {locale.COMMON.URL}:
+
+ {path}
+
+
+ -
+ {locale.COMMON.COPYRIGHT}:
+ {locale.COMMON.COPYRIGHT_NOTICE}
+
+
+
}
diff --git a/themes/matery/components/ArticleInfo.js b/themes/matery/components/ArticleInfo.js
index 1a4c9a4a..892e1c3e 100644
--- a/themes/matery/components/ArticleInfo.js
+++ b/themes/matery/components/ArticleInfo.js
@@ -10,38 +10,36 @@ export const ArticleInfo = (props) => {
const { locale } = useGlobal()
const date = formatDate(post?.date?.start_date || post?.createdTime, locale.LOCALE)
- return (
-
-
- {post.tagItems && (
-
- {post.tagItems.map(tag => (
-
- ))}
-
- )}
-
+ return
+
+ {post.tagItems && (
+
+ {post.tagItems.map(tag => (
+
+ ))}
+
+ )}
+
-
- {post?.type !== 'Page' && (<>
-
+
+ {post?.type !== 'Page' && (<>
+
+
+ 发布日期: {date}
+
+
+
+ 更新日期: {post.lastEditedTime}
+
+
+
+
+
+ >)}
+
-
发布日期:{date}
-
-
-
- 更新日期: {post.lastEditedTime}
-
-
-
-
-
- >)}
-
-
-
- );
+
}
diff --git a/themes/matery/components/ArticleRecommend.js b/themes/matery/components/ArticleRecommend.js
index ed87337e..428b7afa 100644
--- a/themes/matery/components/ArticleRecommend.js
+++ b/themes/matery/components/ArticleRecommend.js
@@ -34,32 +34,35 @@ export default function ArticleRecommend({ recommendPosts, siteInfo }) {
: `url("${siteInfo?.pageCover}")`
return (
- (
-
-
- );
+ )
}
}
diff --git a/themes/matery/components/BlogPostCard.js b/themes/matery/components/BlogPostCard.js
index 0f901a71..fbe24de5 100644
--- a/themes/matery/components/BlogPostCard.js
+++ b/themes/matery/components/BlogPostCard.js
@@ -7,83 +7,80 @@ import CONFIG_MATERY from '../config_matery'
const BlogPostCard = ({ post, showSummary }) => {
const showPreview = CONFIG_MATERY.POST_LIST_PREVIEW && post.blockMap
return (
-
+
- {/* 固定高度 ,空白用图片拉升填充 */}
-
+ {/* 固定高度 ,空白用图片拉升填充 */}
+
- {/* 头部图片 填充卡片 */}
- {CONFIG_MATERY.POST_LIST_COVER && !showPreview && post?.page_cover && (
-
-
- {/* eslint-disable-next-line @next/next/no-img-element */}
-

-
{post.title}
-
-
- )}
+ {/* 头部图片 填充卡片 */}
+ {CONFIG_MATERY.POST_LIST_COVER && !showPreview && post?.page_cover && (
+
+
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+

+
{post.title}
+
+
+ )}
-
- {/* 描述 */}
-
+
+ {/* 描述 */}
+
- {(!showPreview || showSummary) && post.summary && (
-
- {post.summary}
-
- )}
+ {(!showPreview || showSummary) && post.summary && (
+
+ {post.summary}
+
+ )}
-
-
- {post.date?.start_date || post.lastEditedTime}
+ {post?.tagItems && post?.tagItems.length > 0 && (<>
+
+
+
+
+ {' '}
+ {post.tagItems.map(tag => (
+
+ ))}
+
+
+
+ >)}
+
+
-
-
-
-
- {post.category}
-
-
-
-
-
- {post?.tagItems && post?.tagItems.length > 0 && (<>
-
-
-
-
- {' '}
- {post.tagItems.map(tag => (
-
- ))}
-
-
-
- >)}
-
-
-
-
- );
+
+ )
}
export default BlogPostCard
diff --git a/themes/matery/components/Catalog.js b/themes/matery/components/Catalog.js
index f58aa9fb..3104e338 100644
--- a/themes/matery/components/Catalog.js
+++ b/themes/matery/components/Catalog.js
@@ -58,12 +58,12 @@ const Catalog = ({ toc }) => {
return <>>
}
- return
+ return
目录
-
+