feat: update titles for certification pages (#42252)
* feat: update titles for certification pages * fix: update titles in Cypress tests * fix: change "certificate" to "certification" in intro-page.js test file * fix: prevent adding "Certification" to title for interview prep, make variable name more clear * feat: add test for coding interview prep page title
This commit is contained in:
committed by
GitHub
parent
fa594cf7f5
commit
e82f5f4425
@@ -148,11 +148,17 @@ class SuperBlockIntroductionPage extends Component {
|
||||
const nodesForSuperBlock = edges.map(({ node }) => node);
|
||||
const blockDashedNames = uniq(nodesForSuperBlock.map(({ block }) => block));
|
||||
const i18nSuperBlock = t(`intro:${superBlock}.title`);
|
||||
const i18nTitle =
|
||||
superBlock === 'coding-interview-prep'
|
||||
? i18nSuperBlock
|
||||
: t(`intro:misc-text.certification`, {
|
||||
cert: i18nSuperBlock
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
<Helmet>
|
||||
<title>{i18nSuperBlock} | freeCodeCamp.org</title>
|
||||
<title>{i18nTitle} | freeCodeCamp.org</title>
|
||||
</Helmet>
|
||||
<Grid>
|
||||
<Row className='super-block-intro-page'>
|
||||
|
Reference in New Issue
Block a user