diff --git a/themes/matery/index.js b/themes/matery/index.js index eee59b53..6ecb7dbf 100644 --- a/themes/matery/index.js +++ b/themes/matery/index.js @@ -41,7 +41,7 @@ import { siteConfig } from '@/lib/config' */ const LayoutBase = props => { const { children, headerSlot, meta, siteInfo, containerSlot, post } = props - const { onLoading } = useGlobal() + const { onLoading, fullWidth } = useGlobal() return (
@@ -69,11 +69,11 @@ const LayoutBase = props => {
{/* 嵌入区域 */} -
+
{containerSlot}
-
+
{ */ const LayoutSlug = props => { const { post, lock, validPassword } = props + const { fullWidth } = useGlobal() + const headerSlot = fullWidth ? null : - return (} showCategory={false} showTag={false} floatRightBottom={}> + return (}> -
+
{/* 文章主体卡片 */} -
+
{lock && } @@ -221,7 +223,7 @@ const LayoutSlug = props => {
{/* Notion文章主体 */} -
+
{post && }