From 216b1c35edfe5c08914648c3815b341722fba0ba Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 11 Jun 2024 10:53:37 -0400 Subject: [PATCH] show left --- src/layouts/BaseLayout.astro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 7b4bd81..a2fbb88 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -14,6 +14,8 @@ interface Props { const { title, pad, toc } = Astro.props; const shouldPad = pad === undefined ? true : pad; const hasToc = toc ?? false; + +const showLeft = import.meta.env.MODE === "production"; --- @@ -31,7 +33,7 @@ const hasToc = toc ?? false;
- + {showLeft && }