Skip to content

Commit

Permalink
Show subcategory if it is exist for title of nav
Browse files Browse the repository at this point in the history
  • Loading branch information
hong4rc committed May 19, 2019
1 parent cbd2a58 commit 0c61eee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/docusaurus-1.x/lib/core/nav/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ class SideNav extends React.Component {
<h2>
<i></i>
<span>
{this.getLocalizedCategoryString(this.props.current.category)}
{this.getLocalizedCategoryString(
this.props.current.subcategory ||
this.props.current.category,
)}
</span>
</h2>
{siteConfig.onPageNav === 'separate' && (
Expand Down

0 comments on commit 0c61eee

Please sign in to comment.