Skip to content

Commit f4e18ce

Browse files
committed
feat: add specific title metadata to each page
1 parent 56aea65 commit f4e18ce

5 files changed

Lines changed: 55 additions & 1 deletion

File tree

app/(home)/layout.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { Metadata } from "next";
2+
3+
export const metadata: Metadata = {
4+
title: "Início",
5+
};
6+
7+
export default function HomeLayout({
8+
children,
9+
}: Readonly<{
10+
children: React.ReactNode;
11+
}>) {
12+
return (
13+
<>
14+
{children}
15+
</>
16+
);
17+
}
File renamed without changes.

app/100nossao/layout.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { Metadata } from 'next';
2+
3+
export const metadata: Metadata = {
4+
title: '100Nossão',
5+
};
6+
7+
export default function CemNossaoLayout({
8+
children,
9+
}: Readonly<{
10+
children: React.ReactNode;
11+
}>) {
12+
return (
13+
<>
14+
{children}
15+
</>
16+
);
17+
}

app/layout.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const bricolageGrotesque = Bricolage_Grotesque({
1010
});
1111

1212
export const metadata: Metadata = {
13-
title: "AAACEC",
13+
title: {
14+
default: "AAACEC",
15+
template: "%s | AAACEC",
16+
},
1417
description: "Site oficial da Associação Atlética Acadêmica da Ciência e Engenharia de Computação",
1518
};
1619

app/sobre/layout.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { Metadata } from "next";
2+
3+
export const metadata: Metadata = {
4+
title: "Sobre",
5+
};
6+
7+
export default function SobreLayout({
8+
children,
9+
}: Readonly<{
10+
children: React.ReactNode;
11+
}>) {
12+
return (
13+
<>
14+
{children}
15+
</>
16+
);
17+
}

0 commit comments

Comments
 (0)