diff --git a/themes/hexo/LayoutBase.js b/themes/hexo/LayoutBase.js index 21f2cffd..8c2d72f2 100644 --- a/themes/hexo/LayoutBase.js +++ b/themes/hexo/LayoutBase.js @@ -67,7 +67,6 @@ const LayoutBase = props => { loadExternalResource('/css/theme-hexo.css', 'css') } - const fixStyleObject = !CONFIG_HEXO.HOME_BANNER_ENABLE ? { paddingTop: '4rem' }:{} return (
@@ -76,7 +75,7 @@ const LayoutBase = props => { {headerSlot} -
+
{onLoading ? : children} diff --git a/themes/matery/LayoutBase.js b/themes/matery/LayoutBase.js index 6dbac0d6..282cc44b 100644 --- a/themes/matery/LayoutBase.js +++ b/themes/matery/LayoutBase.js @@ -42,7 +42,6 @@ const LayoutBase = props => { if (isBrowser()) { loadExternalResource('/css/theme-matery.css', 'css') } - const fixStyleObject = !CONFIG_MATERY.HOME_BANNER_ENABLE ? { paddingTop: '4rem' } : {} return (
@@ -53,7 +52,7 @@ const LayoutBase = props => { {headerSlot} -
+
{/* 嵌入区域 */}
{props.containerSlot}