File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ const Page = ({ page, section }) => {
31
31
component = { Sidebar }
32
32
sectionName = { section . name }
33
33
pages = { pages }
34
- currentPage = { page . url . replace ( '/index' , '' ) } />
34
+ currentPage = { page . url . replace ( '/index' , '' ) }
35
+ anchors = { page . file . attributes . anchors } />
35
36
36
37
< section className = "page__content" >
37
38
< h1 > { title } </ h1 >
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export default class Sidebar extends Component {
10
10
} ;
11
11
12
12
render ( ) {
13
- let { sectionName, pages, currentPage } = this . props ;
13
+ let { sectionName, pages, currentPage, anchors } = this . props ;
14
14
let { fixed, availableHeight, maxWidth } = this . state ;
15
15
16
16
return (
@@ -32,7 +32,8 @@ export default class Sidebar extends Component {
32
32
< SidebarItem
33
33
url = { `/${ sectionName } /` }
34
34
title = "Introduction"
35
- currentPage = { currentPage } />
35
+ currentPage = { currentPage }
36
+ anchors = { anchors } />
36
37
37
38
{
38
39
pages . map ( ( page , i ) =>
You can’t perform that action at this time.
0 commit comments