diff --git a/components/ArticleDetail.js b/components/ArticleDetail.js index 56534a49..aeb733ee 100644 --- a/components/ArticleDetail.js +++ b/components/ArticleDetail.js @@ -44,7 +44,7 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n return (<>
{post.type && !post.type.includes('Page') && post?.page_cover && ( diff --git a/components/BlogPostListScroll.js b/components/BlogPostListScroll.js index 7b85dad3..29a86a47 100644 --- a/components/BlogPostListScroll.js +++ b/components/BlogPostListScroll.js @@ -33,7 +33,7 @@ const BlogPostListScroll = ({ posts = [], tags, currentSearch, currentCategory, const scrollTrigger = useCallback(throttle(() => { const scrollS = window.scrollY + window.outerHeight const clientHeight = targetRef ? (targetRef.current ? (targetRef.current.clientHeight) : 0) : 0 - if (scrollS > clientHeight + 10) { + if (scrollS > clientHeight + 100) { handleGetMore() } }, 500)) diff --git a/components/SideArea.js b/components/SideArea.js index 9d9e4473..0766d359 100644 --- a/components/SideArea.js +++ b/components/SideArea.js @@ -52,17 +52,6 @@ const SideArea = ({ title, tags, currentTag, post, posts, categories, currentCat )} -
- {/* 展示广告 */} - -
- {/* 分类 */} {categories && (
diff --git a/components/Toc.js b/components/Toc.js index 9665c175..55c640e1 100644 --- a/components/Toc.js +++ b/components/Toc.js @@ -51,14 +51,14 @@ const Toc = ({ toc }) => { }, throttleMs)) return <> -