)
}
diff --git a/themes/Hexo/components/JumpToTopButton.js b/themes/Hexo/components/JumpToTopButton.js
index 25a186d7..de1bce3d 100644
--- a/themes/Hexo/components/JumpToTopButton.js
+++ b/themes/Hexo/components/JumpToTopButton.js
@@ -15,9 +15,9 @@ const JumpToTopButton = ({ showPercent = true, percent }) => {
return <>>
}
const { locale } = useGlobal()
- return (
window.scrollTo({ top: 0, behavior: 'smooth' })} >
- {!showPercent &&
}
- {showPercent && (
{percent}
)}
+ return (
window.scrollTo({ top: 0, behavior: 'smooth' })} >
+
+ {showPercent && (
{percent}
)}
)
}
diff --git a/themes/Hexo/components/MenuButtonGroup.js b/themes/Hexo/components/MenuGroupCard.js
similarity index 95%
rename from themes/Hexo/components/MenuButtonGroup.js
rename to themes/Hexo/components/MenuGroupCard.js
index e0e6946c..0ff25e37 100644
--- a/themes/Hexo/components/MenuButtonGroup.js
+++ b/themes/Hexo/components/MenuGroupCard.js
@@ -3,7 +3,7 @@ import Link from 'next/link'
import { useGlobal } from '@/lib/global'
import CONFIG_HEXO from '../config_hexo'
-const MenuButtonGroup = (props) => {
+const MenuGroupCard = (props) => {
const { postCount, categories, tags } = props
const { locale } = useGlobal()
const archiveSlot =
{postCount}
@@ -33,4 +33,4 @@ const MenuButtonGroup = (props) => {
})}
}
-export default MenuButtonGroup
+export default MenuGroupCard
diff --git a/themes/Hexo/components/PaginationNumber.js b/themes/Hexo/components/PaginationNumber.js
index 7224e078..56942531 100644
--- a/themes/Hexo/components/PaginationNumber.js
+++ b/themes/Hexo/components/PaginationNumber.js
@@ -48,7 +48,7 @@ const PaginationNumber = ({ page, totalPage }) => {
function getPageElement (page, currentPage) {
return
-
{page}
diff --git a/themes/Hexo/components/TocDrawerButton.js b/themes/Hexo/components/TocDrawerButton.js
index 4554ca8c..a4bba1a4 100644
--- a/themes/Hexo/components/TocDrawerButton.js
+++ b/themes/Hexo/components/TocDrawerButton.js
@@ -14,8 +14,8 @@ const TocDrawerButton = (props) => {
return <>>
}
const { locale } = useGlobal()
- return (
-
+ return (
+
)
}
diff --git a/themes/Hexo/components/TopNav.js b/themes/Hexo/components/TopNav.js
index 8936325a..b2b73433 100644
--- a/themes/Hexo/components/TopNav.js
+++ b/themes/Hexo/components/TopNav.js
@@ -27,7 +27,7 @@ const TopNav = (props) => {
const scrollS = window.scrollY
const nav = document.querySelector('#sticky-nav')
const header = document.querySelector('#header')
- const showNav = (scrollS > 10 && scrollS < windowTop) || (header && scrollS < 5) // 非首页无大图时影藏顶部 滚动条置顶时隐藏
+ const showNav = (scrollS > 0 && scrollS < windowTop) || (header && scrollS < 5) // 非首页无大图时影藏顶部 滚动条置顶时隐藏
if (!showNav) {
nav && nav.classList.replace('top-0', '-top-20')