-
-
- {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 (
-
+
+
+
+
+ )
+ );
+ })}
+ >;
}
export default LatestPostsGroup
diff --git a/themes/matery/components/Logo.js b/themes/matery/components/Logo.js
index 2bfc6ea7..61408026 100644
--- a/themes/matery/components/Logo.js
+++ b/themes/matery/components/Logo.js
@@ -4,10 +4,12 @@ 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/matery/components/MenuButtonGroupTop.js b/themes/matery/components/MenuButtonGroupTop.js
index e76eaa4a..c95fc50d 100644
--- a/themes/matery/components/MenuButtonGroupTop.js
+++ b/themes/matery/components/MenuButtonGroupTop.js
@@ -18,21 +18,30 @@ const MenuButtonGroupTop = (props) => {
links = customNav.concat(links)
}
- return
+ return (
+
+ );
}
export default MenuButtonGroupTop
diff --git a/themes/matery/components/MenuGroupCard.js b/themes/matery/components/MenuGroupCard.js
index 35220081..f7e674c4 100644
--- a/themes/matery/components/MenuGroupCard.js
+++ b/themes/matery/components/MenuGroupCard.js
@@ -16,21 +16,30 @@ const MenuGroupCard = (props) => {
{ name: locale.COMMON.TAGS, to: '/tag', slot: tagSlot, show: CONFIG_MATERY.MENU_TAG }
]
- return
+ return (
+
+ );
}
export default MenuGroupCard
diff --git a/themes/matery/components/MenuList.js b/themes/matery/components/MenuList.js
index f2344f72..c9ace3b3 100644
--- a/themes/matery/components/MenuList.js
+++ b/themes/matery/components/MenuList.js
@@ -21,24 +21,32 @@ const MenuList = (props) => {
links = links.concat(customNav)
}
- return
+ return (
+
+ );
}
export default MenuList
diff --git a/themes/matery/components/NavButtonGroup.js b/themes/matery/components/NavButtonGroup.js
index f15b992d..d490cd7b 100644
--- a/themes/matery/components/NavButtonGroup.js
+++ b/themes/matery/components/NavButtonGroup.js
@@ -13,12 +13,21 @@ const NavButtonGroup = (props) => {
return <>>
}
- return
+ return (
+
+ );
}
export default NavButtonGroup
diff --git a/themes/matery/components/PaginationNumber.js b/themes/matery/components/PaginationNumber.js
index fba781e2..0eb0b001 100644
--- a/themes/matery/components/PaginationNumber.js
+++ b/themes/matery/components/PaginationNumber.js
@@ -16,51 +16,57 @@ 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/matery/components/PaginationSimple.js b/themes/matery/components/PaginationSimple.js
index 38196ab2..f773eb82 100644
--- a/themes/matery/components/PaginationSimple.js
+++ b/themes/matery/components/PaginationSimple.js
@@ -25,7 +25,7 @@ const PaginationSimple = ({ page, totalPage }) => {
query: router.query.s ? { s: router.query.s } : {}
}}
passHref
- >
+ legacyBehavior>
- )
+ );
}
export default PaginationSimple
diff --git a/themes/matery/components/SideBar.js b/themes/matery/components/SideBar.js
index 20449e19..9c8a1e8e 100644
--- a/themes/matery/components/SideBar.js
+++ b/themes/matery/components/SideBar.js
@@ -30,37 +30,43 @@ const SideBar = (props) => {
}
return (
-