Skip to content

Commit

Permalink
fix: Fix sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
bebraw committed May 28, 2017
1 parent f27c5f3 commit 79ca992
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/page/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ const Page = ({ page, section }) => {
id="components/sidebar/sidebar.jsx"
component={ Sidebar }
sectionName={ section.name }
pages={ section.pages().map(page => ({ url, title, anchors })) }
pages={ section.pages().map(({
file: {
attributes: {
anchors,
title
}
},
url
}) => ({ url, title, anchors })) }
currentPage={ url } />

<section className="page__content">
Expand Down

0 comments on commit 79ca992

Please sign in to comment.