Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit feed247

Browse files
committed
generate export map for chapter pages
1 parent 77a3603 commit feed247

File tree

4 files changed

+339
-29
lines changed

4 files changed

+339
-29
lines changed

components/common/header/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class NavBar extends React.Component {
6464
const pathName = this.props.router.pathname;
6565
const metaData = MetaInfo[pathName === '/' ? 'home' : pathName.split('/')[1]];
6666
const title =
67-
pathName.split('/')[1] === 'learn'
67+
pathName.split('/')[1] === 'learn' && pathName.split('/')[2]
6868
? `Learn ${this.props.router.query.subject[0].toUpperCase() +
6969
this.props.router.query.subject.slice(1)} | Coderplex`
7070
: metaData.title;

0 commit comments

Comments
 (0)