Skip to content

Commit 109bcaf

Browse files
authored
Merge pull request #27 from Ellahinator/metadata
Use `constructMetadata` function for metadata of pages
2 parents d0a986f + 96a6fb1 commit 109bcaf

File tree

3 files changed

+24
-12
lines changed

3 files changed

+24
-12
lines changed
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import Page from "./page";
2-
export const metadata = {
3-
title: 'Reset Password - Open PRO',
4-
description: 'Page description',
5-
}
2+
import { constructMetadata } from "@/lib/utils"
3+
import { Metadata } from "next/types"
4+
5+
export const metadata: Metadata = constructMetadata({
6+
title: 'Reset Password',
7+
description: 'Reset your password',
8+
canonical: '/reset-password',
9+
})
610

711
export default Page;

app/(auth)/signin/layout.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import Page from "./page";
2-
export const metadata = {
3-
title: 'Sign In - Open PRO',
4-
description: 'Page description',
5-
}
2+
import { constructMetadata } from "@/lib/utils"
3+
import { Metadata } from "next/types"
4+
5+
export const metadata: Metadata = constructMetadata({
6+
title: 'Sign In',
7+
description: 'Sign in to your account',
8+
canonical: '/signin',
9+
})
610

711
export default Page;

app/(auth)/signup/layout.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import Page from "./page";
2-
export const metadata = {
3-
title: 'Sign Up - Open PRO',
4-
description: 'Page description',
5-
}
2+
import { constructMetadata } from "@/lib/utils"
3+
import { Metadata } from "next/types"
4+
5+
export const metadata: Metadata = constructMetadata({
6+
title: 'Sign Up',
7+
description: 'Sign up for an account',
8+
canonical: '/signup',
9+
})
610

711
export default Page;

0 commit comments

Comments
 (0)