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

Commit 3d4e6d0

Browse files
committed
add chapter name also to learn pages title
1 parent feed247 commit 3d4e6d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/common/header/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ class NavBar extends React.Component {
6565
const metaData = MetaInfo[pathName === '/' ? 'home' : pathName.split('/')[1]];
6666
const title =
6767
pathName.split('/')[1] === 'learn' && pathName.split('/')[2]
68-
? `Learn ${this.props.router.query.subject[0].toUpperCase() +
68+
? `${this.props.router.query.chapter.replace(
69+
/-/gi,
70+
' '
71+
)} | Learn ${this.props.router.query.subject[0].toUpperCase() +
6972
this.props.router.query.subject.slice(1)} | Coderplex`
7073
: metaData.title;
7174
const description = metaData.description;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy