Skip to content

Commit

Permalink
Merge pull request #176 from Rajandeep98/connect_24998_Page_Title
Browse files Browse the repository at this point in the history
Title updated
  • Loading branch information
Rajandeep98 authored Dec 19, 2024
2 parents 955cd3d + c3a8385 commit 465a6c8
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions web/site/app/composables/docPageData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ export function useDocPageData () {
function createPageHead () {
if (docPageData.value) {
if (docPageData.value._dir === 'get-started') {
return `Get Started - ${docPageData.value.title} - Service BC Connect API Gateway`
return `Get Started - ${docPageData.value.title} | Service BC Connect Developer Site`
} else if (docPageData.value._dir === 'connect') {
return `SBC Connect - ${docPageData.value.title} - Service BC Connect API Gateway`
return `SBC Connect - ${docPageData.value.description} | Service BC Connect Developer Site`
} else {
return `${docPageData.value._dir?.toUpperCase()} - ${docPageData.value.title} - Service BC Connect API Gateway`
return `${docPageData.value.description} - ${docPageData.value.title} | Service BC Connect Developer Site`
}
} else {
return 'Service BC Connect API Gateway'
return 'Service BC Connect Developer Site'
}
}

Expand Down
2 changes: 1 addition & 1 deletion web/site/app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useBreadcrumbs } from '~/composables/sbcBreadcrumb'
import { setBreadcrumbs } from '~/utils/setBreadcrumb'
const { t } = useI18n()
useHead({
title: t('page.home.title')
title: `${t('page.home.title')} | Service BC Connect Developer Site`
})
const breadcrumbs = useBreadcrumbs()
Expand Down
2 changes: 1 addition & 1 deletion web/site/app/tests/unit/composables/docPageData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('useDocPageData', () => {
// assert current dir
expect(composable.currentDir.value).toEqual(queryContentMockData._path)
// assert generated page head
expect(composable.createPageHead()).toBe('Get Started - Test Title - Service BC Connect API Gateway')
expect(composable.createPageHead()).toBe('Get Started - Test Title | Service BC Connect Developer Site')
})

// TODO: figure out how to test the watcher reacting to route changes
Expand Down
2 changes: 1 addition & 1 deletion web/site/content/en-CA/products/bn/overview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'Overview'
description: 'Business Number Overview'
description: 'Business Names API'
---

# Business Names API
Expand Down
2 changes: 1 addition & 1 deletion web/site/content/en-CA/products/br/overview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'Overview'
description: 'Business Registry Overview'
description: 'Business Registry API'
---

# Business Registry API
Expand Down
2 changes: 1 addition & 1 deletion web/site/content/en-CA/products/mhr/overview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'Overview'
description: 'Manufactured Home Registry Overview'
description: 'Manufactured Home Registry API'
---

# Manufactured Home Registry API
Expand Down
2 changes: 1 addition & 1 deletion web/site/content/en-CA/products/pay/overview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'Overview'
description: 'Pay API Overview'
description: 'Pay API'
---

# Pay API
Expand Down
2 changes: 1 addition & 1 deletion web/site/content/en-CA/products/ppr/overview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'Overview'
description: 'Personal Property Registry Overview'
description: 'Personal Property Registry API'
---

# Personal Property Registry API
Expand Down
2 changes: 1 addition & 1 deletion web/site/content/en-CA/products/rs/overview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'Overview'
description: 'Registry Search Overview'
description: 'Registry Search API'
---

# Registry Search API
Expand Down
2 changes: 1 addition & 1 deletion web/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "developer-connect-site",
"private": true,
"type": "module",
"version": "1.0.5",
"version": "1.0.6",
"scripts": {
"build-check": "nuxt build",
"build": "nuxt generate",
Expand Down

0 comments on commit 465a6c8

Please sign in to comment.