fix: mobile navigation should show deepest breadcrumb instead of outermost (#1493)

This commit is contained in:
Hongarc 2019-05-19 16:13:39 +07:00 committed by Endi
parent 89582c7b7a
commit 382b88bb49

View file

@ -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' && (