Skip to content

Commit

Permalink
fix: final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargdm committed Aug 21, 2024
1 parent 17f46e7 commit 9b995c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/[locale]/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import social from '@/lib/social.json'

import { contactHeading, contactList } from './styles.css'

export const metadata = getMetadata(() => ({
export const generateMetadata = getMetadata(() => ({
title: 'Contact',
description: 'Social links and contact information for César Guadarrama',
alternates: { canonical: `/contact` },
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
projectTechnologyItem,
} from '../blog/styles.css'

export const metadata = getMetadata(() => ({
export const generateMetadata = getMetadata(() => ({
title: 'Projects',
description:
'Software engineering projects, websites, web apps, native apps for iOS and Android and more',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export function getMetadata<T = object>(
},
alternates: {
...props.alternates,
canonical: `${host}/${pageProps.params.locale}/${props.alternates?.canonical?.toString() ?? ''}`,
canonical: `${host}/${pageProps.params?.locale}/${props.alternates?.canonical?.toString() ?? ''}`,
},
}
}
Expand Down

0 comments on commit 9b995c2

Please sign in to comment.