Skip to content

Commit

Permalink
use scTitle field for main heading and page title
Browse files Browse the repository at this point in the history
  • Loading branch information
will0684 committed Nov 21, 2023
1 parent 214ae69 commit bd16e2b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
10 changes: 3 additions & 7 deletions pages/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ export default function Home(props) {

{/* Primary HTML Meta Tags */}
<title>
{props.locale === "en"
? pageData.scShortTitleEn
: pageData.scShortTitleFr}
{props.locale === "en" ? pageData.scTitleEn : pageData.scTitleFr}
</title>
<meta
name="description"
Expand Down Expand Up @@ -233,10 +231,8 @@ export default function Home(props) {
id="pageMainTitle"
title={
props.locale === "en"
? pageData.scFragments[0].scContentEn.json[0].content[0]
.value
: pageData.scFragments[0].scContentFr.json[0].content[0]
.value
? pageData.scTitleEn
: pageData.scTitleFr
}
/>
</div>
Expand Down
6 changes: 2 additions & 4 deletions pages/projects/benefits-navigator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,8 @@ export default function BenefitsNavigatorOverview(props) {
id="pageMainTitle"
title={
props.locale === "en"
? pageData.scFragments[2].scContentEn.json[0].content[0]
.value
: pageData.scFragments[2].scContentFr.json[0].content[0]
.value
? pageData.scTitleEn
: pageData.scTitleFr
}
/>
</div>
Expand Down
4 changes: 1 addition & 3 deletions pages/projects/oas-benefits-estimator/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,7 @@ export default function OASUpdatePage(props) {
tabIndex="-1"
id="pageMainTitle"
title={
props.locale === "en"
? pageData.scFragments[1].scContentEn.json[0].content[0].value
: pageData.scFragments[1].scContentFr.json[0].content[0].value
props.locale === "en" ? pageData.scTitleEn : pageData.scTitleFr
}
/>
<div id="postedOnUpdatedOnSection" className="grid grid-cols-12">
Expand Down
6 changes: 2 additions & 4 deletions pages/projects/oas-benefits-estimator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,8 @@ export default function OasBenefitsEstimator(props) {
id="pageMainTitle"
title={
props.locale === "en"
? pageData.scFragments[0].scContentEn.json[0].content[0]
.value
: pageData.scFragments[0].scContentFr.json[0].content[0]
.value
? pageData.scTitleEn
: pageData.scTitleFr
}
/>
</div>
Expand Down

0 comments on commit bd16e2b

Please sign in to comment.