diff options
author | 2021-09-06 01:23:19 -0700 | |
---|---|---|
committer | 2021-09-06 01:23:19 -0700 | |
commit | 6185f9f7b15908b48f9ae2e1d532634f5b59c9f9 (patch) | |
tree | 12ec4f4a8a469a7d92f2a127ed2e4d34013f6e7c /docs/src/layouts | |
parent | e686c3c50469d18db93da7ce79ddcac8659c3166 (diff) | |
parent | 6dc05575a65bf6bdc6f52848d274b1f333a36076 (diff) | |
download | astro-6185f9f7b15908b48f9ae2e1d532634f5b59c9f9.tar.gz astro-6185f9f7b15908b48f9ae2e1d532634f5b59c9f9.tar.zst astro-6185f9f7b15908b48f9ae2e1d532634f5b59c9f9.zip |
Docs/example and templates v2 (#1100)
Diffstat (limited to 'docs/src/layouts')
-rw-r--r-- | docs/src/layouts/MainLayout.astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/layouts/MainLayout.astro b/docs/src/layouts/MainLayout.astro index 234270a77..2a559d57e 100644 --- a/docs/src/layouts/MainLayout.astro +++ b/docs/src/layouts/MainLayout.astro @@ -8,7 +8,7 @@ import LeftSidebar from '../components/LeftSidebar/LeftSidebar.astro'; import RightSidebar from '../components/RightSidebar/RightSidebar.astro'; import { SITE } from "../config.ts"; -const { content = {} } = Astro.props; +const { content = {}, hideRightSidebar = false} = Astro.props; const currentPage = Astro.request.url.pathname; const currentFile = `src/pages${currentPage.replace(/\/$/, "")}.md`; const githubEditUrl = `https://github.com/snowpackjs/astro/blob/main/docs/${currentFile}`; @@ -116,7 +116,7 @@ const formatTitle = (content, SITE) => content.title ? `${content.title} 🚀 ${ </PageContent> </div> <aside id="grid-right" class="grid-sidebar" title="Table of Contents"> - <RightSidebar content={content} githubEditUrl={githubEditUrl} /> + {!hideRightSidebar && <RightSidebar content={content} githubEditUrl={githubEditUrl} />} </aside> </main> </body> |