Skip to content

Commit

Permalink
feat: update docs example astro.headings => headings
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Aug 5, 2022
1 parent 9295bae commit 37b805b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions examples/docs/src/components/PageContent/PageContent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
import MoreMenu from "../RightSidebar/MoreMenu.astro";
import TableOfContents from "../RightSidebar/TableOfContents";
const { content, githubEditUrl } = Astro.props;
const { content, headings, githubEditUrl } = Astro.props;
const title = content.title;
const headings = content.astro.headings;
---

<article id="article" class="content">
Expand All @@ -29,9 +28,11 @@ const headings = content.astro.headings;
display: flex;
flex-direction: column;
}
.content > section {

.content>section {
margin-bottom: 4rem;
}

.block {
display: block;
}
Expand Down
4 changes: 2 additions & 2 deletions examples/docs/src/components/RightSidebar/RightSidebar.astro
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
import TableOfContents from "./TableOfContents";
import MoreMenu from "./MoreMenu.astro";
const { content, githubEditUrl } = Astro.props;
const headings = content.astro.headings;
const { content, headings, githubEditUrl } = Astro.props;
---

<nav class="sidebar-nav" aria-labelledby="grid-right">
Expand All @@ -18,6 +17,7 @@ const headings = content.astro.headings;
position: sticky;
top: 0;
}

.sidebar-nav-inner {
height: 100%;
padding: 0;
Expand Down

0 comments on commit 37b805b

Please sign in to comment.