+
@@ -30,8 +30,8 @@ export default function ArticleRecommend({ recommendPosts, siteInfo }) {
{recommendPosts.map(post => {
const headerImage = post?.page_cover
- ? `url("${post.page_cover}")`
- : `url("${siteInfo?.pageCover}")`
+ ? `url("${post.page_cover}&w=240")`
+ : `url("${siteInfo?.pageCover}&w=240")`
return (
(
{post.date?.start_date}
-
{post.title}
+
{post.title}
diff --git a/themes/hexo/components/BlogPostCard.js b/themes/hexo/components/BlogPostCard.js
index 56a69368..4725350b 100644
--- a/themes/hexo/components/BlogPostCard.js
+++ b/themes/hexo/components/BlogPostCard.js
@@ -36,7 +36,7 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => {
{showPageCover && (
)}
diff --git a/themes/hexo/components/BlogPostCardInfo.js b/themes/hexo/components/BlogPostCardInfo.js
index 31288658..a1e562a0 100644
--- a/themes/hexo/components/BlogPostCardInfo.js
+++ b/themes/hexo/components/BlogPostCardInfo.js
@@ -18,24 +18,24 @@ export const BlogPostCardInfo = ({ post, showPreview, showPageCover, showSummary
href={`${BLOG.SUB_PATH}/${post.slug}`}
passHref
className={`replace cursor-pointer hover:underline text-2xl ${showPreview ? 'text-center' : ''
- } leading-tight text-gray-600 dark:text-gray-100 hover:text-indigo-700 dark:hover:text-indigo-400`}>
+ } leading-tight font-normal text-gray-600 dark:text-gray-100 hover:text-indigo-700 dark:hover:text-indigo-400`}>
{post.title}
- {/* 日期 */}
+ {/* 分类 */}
+ className="cursor-pointer font-light text-sm hover:underline hover:text-indigo-700 dark:hover:text-indigo-400 transform">
-
- {post.date?.start_date || post.lastEditedTime}
+
+ {post.category}
@@ -67,17 +67,19 @@ export const BlogPostCardInfo = ({ post, showPreview, showPageCover, showSummary
- {/* 分类标签 */}
+ {/* 日期标签 */}
+ {/* 日期 */}
+ className="font-light hover:underline cursor-pointer text-sm leading-4 mr-3">
-
- {post.category}
+
+ {post.date?.start_date || post.lastEditedTime}
+
{' '}
diff --git a/themes/hexo/components/Card.js b/themes/hexo/components/Card.js
index c166ffc1..c2db0e49 100644
--- a/themes/hexo/components/Card.js
+++ b/themes/hexo/components/Card.js
@@ -1,7 +1,7 @@
const Card = ({ children, headerSlot, className }) => {
return
<>{headerSlot}>
-
diff --git a/themes/hexo/components/Catalog.js b/themes/hexo/components/Catalog.js
index 1e7d5b40..980be47b 100644
--- a/themes/hexo/components/Catalog.js
+++ b/themes/hexo/components/Catalog.js
@@ -61,7 +61,7 @@ const Catalog = ({ toc }) => {
return <>>
}
- return
+ return
{locale.COMMON.TABLE_OF_CONTENTS}
@@ -79,7 +79,7 @@ const Catalog = ({ toc }) => {
notion-table-of-contents-item-indent-level-${tocItem.indentLevel} `}
>
{tocItem.text}
diff --git a/themes/hexo/components/Footer.js b/themes/hexo/components/Footer.js
index 5a5c50d4..f67b53f2 100644
--- a/themes/hexo/components/Footer.js
+++ b/themes/hexo/components/Footer.js
@@ -26,9 +26,8 @@ const Footer = ({ title }) => {
-
-
{title}
-
Powered by NotionNext {BLOG.VERSION}.
+
{title} | {BLOG.BIO}
+
Powered by NotionNext {BLOG.VERSION}.
)
diff --git a/themes/hexo/components/Header.js b/themes/hexo/components/Header.js
index 60edd4e8..fa62d75b 100644
--- a/themes/hexo/components/Header.js
+++ b/themes/hexo/components/Header.js
@@ -4,10 +4,11 @@ import Typed from 'typed.js'
import CONFIG_HEXO from '../config_hexo'
import NavButtonGroup from './NavButtonGroup'
import throttle from 'lodash.throttle'
+import { useGlobal } from '@/lib/global'
let wrapperTop = 0
let windowTop = 0
-let autoScroll = false
+let autoScroll = true
const enableAutoScroll = false // 是否开启自动吸附滚动
/**
@@ -17,6 +18,7 @@ const enableAutoScroll = false // 是否开启自动吸附滚动
const Header = props => {
const [typed, changeType] = useState()
const { siteInfo } = props
+ const { locale } = useGlobal()
useEffect(() => {
updateHeaderHeight()
@@ -85,12 +87,12 @@ const Header = props => {
return (