Skip to content

Commit

Permalink
Adds right-sidebar navigation made available in #475 to Blog Post pag…
Browse files Browse the repository at this point in the history
…es (#682)
  • Loading branch information
ericnakagawa authored and JoelMarcey committed Jun 6, 2018
1 parent 31f0c27 commit 49c27b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/core/BlogPostLayout.js
Expand Up @@ -10,6 +10,7 @@ const BlogPost = require('./BlogPost.js');
const BlogSidebar = require('./BlogSidebar.js');
const Container = require('./Container.js');
const Site = require('./Site.js');
const OnPageNav = require('./nav/OnPageNav.js');
const utils = require('./utils.js');

// used for entire blog posts, i.e., each written blog article with sidebar with site header/footer
Expand Down Expand Up @@ -127,6 +128,11 @@ class BlogPostLayout extends React.Component {
</a>
</div>
</Container>
{this.props.config.onPageNav == 'separate' && (
<nav className="onPageNav">
<OnPageNav rawContent={this.props.children} />
</nav>
)}
</div>
</Site>
);
Expand Down

0 comments on commit 49c27b7

Please sign in to comment.