From bb86edd3ba979c57f7a2414de0904f518afa3782 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 30 Dec 2023 17:54:57 +0800 Subject: [PATCH] =?UTF-8?q?Matery=E6=94=AF=E6=8C=81FullWidth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/matery/index.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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 && }