diff --git a/themes/hexo/LayoutBase.js b/themes/hexo/LayoutBase.js index 414b5e0d..8f7267a9 100644 --- a/themes/hexo/LayoutBase.js +++ b/themes/hexo/LayoutBase.js @@ -74,10 +74,7 @@ const LayoutBase = props => { {headerSlot}
-
+
{onLoading ? : children}
diff --git a/themes/hexo/LayoutSlug.js b/themes/hexo/LayoutSlug.js index a84be094..b47478e8 100644 --- a/themes/hexo/LayoutSlug.js +++ b/themes/hexo/LayoutSlug.js @@ -46,7 +46,7 @@ export const LayoutSlug = props => { showTag={false} floatSlot={floatSlot} > -
+
{lock && } {!lock &&
diff --git a/themes/hexo/components/TopNav.js b/themes/hexo/components/TopNav.js index 1e790cdd..252ce8a0 100644 --- a/themes/hexo/components/TopNav.js +++ b/themes/hexo/components/TopNav.js @@ -67,7 +67,7 @@ const TopNav = props => { nav && nav.classList.replace('transparent', 'dark:bg-hexo-black-gray') } - const showNav = scrollS <= windowTop || scrollS < 5 || (header && scrollS <= header.clientHeight * 2)// 非首页无大图时影藏顶部 滚动条置顶时隐藏 + const showNav = scrollS <= windowTop || scrollS < 5 || (header && scrollS <= header.clientHeight)// 非首页无大图时影藏顶部 滚动条置顶时隐藏 if (!showNav) { nav && nav.classList.replace('top-0', '-top-20') windowTop = scrollS