diff --git a/app/web/src/layouts/AppLayout.astro b/app/web/src/layouts/AppLayout.astro index ddab262..9de107d 100644 --- a/app/web/src/layouts/AppLayout.astro +++ b/app/web/src/layouts/AppLayout.astro @@ -20,6 +20,8 @@ export interface Props { switchHref?: string; switchLabel?: string; seo?: PageSeoInput; + /** 媒体页只保留 AppShell 侧栏时隐藏模板 side-rail(含左让位) */ + hideSideRail?: boolean; } const { @@ -30,6 +32,7 @@ const { switchHref, switchLabel, seo, + hideSideRail = false, } = Astro.props; const brandName = brand ?? t(locale, "meta.brand"); @@ -125,38 +128,40 @@ const brandInitial = locale === "zh-CN" ? "模" : "A";
- + ) + } -