diff --git a/components/GoogleAdsense.js b/components/GoogleAdsense.js index e7847674..9cdaa406 100644 --- a/components/GoogleAdsense.js +++ b/components/GoogleAdsense.js @@ -34,7 +34,10 @@ export default function GoogleAdsense() { const router = useRouter() useEffect(() => { - initGoogleAdsense() + // 延迟3秒加载 + setTimeout(() => { + initGoogleAdsense() + }, 3000) }, [router]) return null diff --git a/themes/heo/components/BlogPostCard.js b/themes/heo/components/BlogPostCard.js index 756743dd..d44c5fe4 100644 --- a/themes/heo/components/BlogPostCard.js +++ b/themes/heo/components/BlogPostCard.js @@ -13,15 +13,20 @@ const BlogPostCard = ({ index, post, showSummary, siteInfo }) => { return (
-
+
{/* 图片封面 */} {showPageCover && ( -
- - - -
+ +
+ +
+ )} {/* 文字区块 */} diff --git a/themes/heo/components/BlogPostListPage.js b/themes/heo/components/BlogPostListPage.js index 8c9e1fd6..52683984 100644 --- a/themes/heo/components/BlogPostListPage.js +++ b/themes/heo/components/BlogPostListPage.js @@ -18,15 +18,16 @@ const BlogPostListPage = ({ page = 1, posts = [], postCount, siteInfo }) => { return } else { return ( -
- {/* 文章列表 */} -
- {posts?.map(post => ( - - ))} -
- {showPagination && } -
+
+ {/* 文章列表 */} +
+ {posts?.map(post => ( + + ))} +
+ + {showPagination && } +
) } } diff --git a/themes/heo/index.js b/themes/heo/index.js index 4c26a948..60b955b8 100644 --- a/themes/heo/index.js +++ b/themes/heo/index.js @@ -40,7 +40,6 @@ import LazyImage from '@/components/LazyImage' */ const LayoutBase = props => { const { children, headerSlot, slotTop, slotRight, meta, siteInfo, className } = props - const { onLoading } = useGlobal() return (
@@ -55,40 +54,17 @@ const LayoutBase = props => {
- - +
{/* 主区上部嵌入 */} {slotTop} - {children} - +
- +
{/* 主区快右侧 */} {slotRight} +
-
@@ -234,7 +210,12 @@ const LayoutSlug = props => { // 右侧栏 const slotRight = - const headerSlot =
+ const headerSlot =
{/* 顶部导航 */} @@ -247,7 +228,12 @@ const LayoutSlug = props => { {!lock &&
-
+
{/* Notion文章主体 */}
{post && } @@ -395,9 +381,9 @@ const LayoutTagIndex = props => { const { tagOptions } = props const { locale } = useGlobal() const headerSlot =
- {/* 顶部导航 */} - -
+ {/* 顶部导航 */} + +
return (