summaryrefslogtreecommitdiff
path: root/docs/src/components/PageContent
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-09-06 01:20:40 -0700
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-09-06 01:21:55 -0700
commit6dc05575a65bf6bdc6f52848d274b1f333a36076 (patch)
tree12ec4f4a8a469a7d92f2a127ed2e4d34013f6e7c /docs/src/components/PageContent
parentd321d8366b597e46ff8e3fc63d17622a9297505c (diff)
downloadastro-6dc05575a65bf6bdc6f52848d274b1f333a36076.tar.gz
astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.tar.zst
astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.zip
scale back the examples page
Diffstat (limited to 'docs/src/components/PageContent')
-rw-r--r--docs/src/components/PageContent/PageContent.astro6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/components/PageContent/PageContent.astro b/docs/src/components/PageContent/PageContent.astro
index 564b8485b..0598d7a2f 100644
--- a/docs/src/components/PageContent/PageContent.astro
+++ b/docs/src/components/PageContent/PageContent.astro
@@ -1,7 +1,7 @@
---
const {content, githubEditUrl, currentPage} = Astro.props;
const title = content.title;
-const headers = content.astro.headers;
+const headers = content.astro?.headers;
import MoreMenu from '../RightSidebar/MoreMenu.astro';
import TableOfContents from '../RightSidebar/TableOfContents.tsx';
import {getLanguageFromURL} from '../../util.ts';
@@ -38,9 +38,9 @@ const previous = index !== -1 ? (index === 0 ? null : links[index - 1]) : null;
<article id="article" class="content">
<section class="main-section">
<h1 class="content-title" id="overview">{title}</h1>
- <nav class="block sm:hidden">
+ {headers && <nav class="block sm:hidden">
<TableOfContents client:media="(max-width: 50em)" headers={headers}/>
- </nav>
+ </nav>}
<slot />
</section>
<nav class="block sm:hidden">