diff options
author | 2021-09-06 01:20:40 -0700 | |
---|---|---|
committer | 2021-09-06 01:21:55 -0700 | |
commit | 6dc05575a65bf6bdc6f52848d274b1f333a36076 (patch) | |
tree | 12ec4f4a8a469a7d92f2a127ed2e4d34013f6e7c /docs/src/layouts/MainLayout.astro | |
parent | d321d8366b597e46ff8e3fc63d17622a9297505c (diff) | |
download | astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.tar.gz astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.tar.zst astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.zip |
scale back the examples page
Diffstat (limited to 'docs/src/layouts/MainLayout.astro')
-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> |