diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-29 23:38:13 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-29 23:38:13 +0100 |
| commit | 82d310403c4bb09bc2f0a204b6374934a10cf348 (patch) | |
| tree | 488e93e373a7d9215531bb8fcfc37bcbb290d0fa /src/components/Breadcrumb/Breadcrumb.tsx | |
| parent | f49dfba86b9ac745ddc374ee0f02f03d7e81d872 (diff) | |
refactor(config): move config from config dir to utils
Diffstat (limited to 'src/components/Breadcrumb/Breadcrumb.tsx')
| -rw-r--r-- | src/components/Breadcrumb/Breadcrumb.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/Breadcrumb/Breadcrumb.tsx b/src/components/Breadcrumb/Breadcrumb.tsx index 30179be..914a175 100644 --- a/src/components/Breadcrumb/Breadcrumb.tsx +++ b/src/components/Breadcrumb/Breadcrumb.tsx @@ -1,4 +1,4 @@ -import { config } from '@config/website'; +import { settings } from '@utils/config'; import Head from 'next/head'; import Link from 'next/link'; import { useRouter } from 'next/router'; @@ -71,7 +71,7 @@ const Breadcrumb = ({ pageTitle }: { pageTitle: string }) => { defaultMessage: 'Home', description: 'Breadcrumb: Home item', }), - item: config.url, + item: settings.url, }; items.push(homepage); @@ -84,7 +84,7 @@ const Breadcrumb = ({ pageTitle }: { pageTitle: string }) => { defaultMessage: 'Blog', description: 'Breadcrumb: Blog item', }), - item: `${config.url}/blog`, + item: `${settings.url}/blog`, }; items.push(blog); @@ -98,7 +98,7 @@ const Breadcrumb = ({ pageTitle }: { pageTitle: string }) => { defaultMessage: 'Projects', description: 'Breadcrumb: Projects item', }), - item: `${config.url}/projets`, + item: `${settings.url}/projets`, }; items.push(blog); @@ -108,7 +108,7 @@ const Breadcrumb = ({ pageTitle }: { pageTitle: string }) => { '@type': 'ListItem', position: items.length + 1, name: pageTitle, - item: `${config.url}${router.asPath}`, + item: `${settings.url}${router.asPath}`, }; items.push(currentPage); @@ -119,7 +119,7 @@ const Breadcrumb = ({ pageTitle }: { pageTitle: string }) => { const schemaJsonLd: WithContext<BreadcrumbList> = { '@context': 'https://schema.org', '@type': 'BreadcrumbList', - '@id': `${config.url}/#breadcrumb`, + '@id': `${settings.url}/#breadcrumb`, itemListElement: getElementsSchema(), }; |
