diff --git a/themes/hexo/components/BlogPostCard.js b/themes/hexo/components/BlogPostCard.js
index 1baa3d82..108ac6fa 100644
--- a/themes/hexo/components/BlogPostCard.js
+++ b/themes/hexo/components/BlogPostCard.js
@@ -15,13 +15,12 @@ const BlogPostCard = ({ post, showSummary, siteInfo }) => {
+ border dark:border-black rounded-xl bg-white dark:bg-hexo-black-gray`}>
{
})
function updateHeaderHeight () {
- setTimeout(() => {
+ requestAnimationFrame(() => {
const wrapperElement = document.getElementById('wrapper')
wrapperTop = wrapperElement?.offsetTop
- }, 500)
+ })
}
return (
@@ -103,12 +103,12 @@ const scrollTrigger = () => {
) {
autoScroll = true
window.scrollTo({ top: wrapperTop, behavior: 'smooth' })
- setTimeout(autoScrollEnd, 500)
+ requestAnimationFrame(autoScrollEnd)
}
if ((scrollS < windowTop) && (scrollS < window.innerHeight) && !autoScroll) {
autoScroll = true
window.scrollTo({ top: 0, behavior: 'smooth' })
- setTimeout(autoScrollEnd, 500)
+ requestAnimationFrame(autoScrollEnd)
}
windowTop = scrollS
}
diff --git a/themes/hexo/components/HeaderArticle.js b/themes/hexo/components/HeaderArticle.js
index fef4ec74..df1593a6 100644
--- a/themes/hexo/components/HeaderArticle.js
+++ b/themes/hexo/components/HeaderArticle.js
@@ -19,7 +19,7 @@ export default function HeaderArticle({ post, siteInfo }) {
return (
- );
+ )
}
diff --git a/themes/hexo/config_hexo.js b/themes/hexo/config_hexo.js
index feb6dbd8..92e5268b 100644
--- a/themes/hexo/config_hexo.js
+++ b/themes/hexo/config_hexo.js
@@ -14,6 +14,7 @@ const CONFIG_HEXO = {
POST_LIST_COVER_DEFAULT: true, // 封面为空时用站点背景做默认封面
POST_LIST_SUMMARY: true, // 文章摘要
POST_LIST_PREVIEW: true, // 读取文章预览
+ POST_LIST_IMG_CROSSOVER: true, // 博客列表图片左右交错
ARTICLE_ADJACENT: true, // 显示上一篇下一篇文章推荐
ARTICLE_COPYRIGHT: true, // 显示文章版权声明