Skip to content

Commit

Permalink
feat: add metatags in App Router for page migrated from Pages Router
Browse files Browse the repository at this point in the history
  • Loading branch information
ixartz committed Dec 6, 2023
1 parent 305e385 commit ce8c277
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/[locale]/(unauth)/about/page.tsx
@@ -1,3 +1,10 @@
import type { Metadata } from 'next';

export const metadata: Metadata = {
title: 'Lorem ipsum',
description: 'Lorem ipsum',
};

export default function About() {
return (
<>
Expand Down
7 changes: 7 additions & 0 deletions src/app/[locale]/(unauth)/page.tsx
@@ -1,7 +1,14 @@
import type { Metadata } from 'next';
import Image from 'next/image';

import { Sponsors } from '@/components/Sponsors';

export const metadata: Metadata = {
title: 'Next.js Boilerplate Presentation',
description:
'Next js Boilerplate is the perfect starter code for your project. Build your React application with the Next.js framework.',
};

export default function Index() {
return (
<>
Expand Down
1 change: 1 addition & 0 deletions src/app/[locale]/(unauth)/portfolio/[slug]/page.tsx
Expand Up @@ -13,6 +13,7 @@ export async function generateStaticParams() {
export function generateMetadata(props: IPortfolioDetailProps): Metadata {
return {
title: `Porfolio ${props.params.slug}`,
description: `Porfolio ${props.params.slug} description`,
};
}

Expand Down

0 comments on commit ce8c277

Please sign in to comment.