Skip to content

Commit

Permalink
Merge pull request #29 from crow-fox/features/title-for-each-page
Browse files Browse the repository at this point in the history
Features/title for each page
  • Loading branch information
crow-fox authored May 4, 2024
2 parents 840b674 + 50e53e2 commit a8bf1c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import { ThemeSelect } from "@/app/_features/darkmode/ThemeSelect";
import Link from "next/link";

export const metadata: Metadata = {
title: "Tailwind Color Contrast Grid",
title: {
template: "%s | Tailwind Color Contrast Grid",
default: "Tailwind Color Contrast Grid",
},
};

export default function RootLayout({
Expand Down
6 changes: 6 additions & 0 deletions app/reference/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Metadata } from "next";

const references = [
{
title: "Customizing Colors - Tailwind CSS",
Expand All @@ -13,6 +15,10 @@ const references = [
},
] as const satisfies { title: string; href: string }[];

export const metadata: Metadata = {
title: "参考サイト",
};

export default function ReferencePage() {
return (
<div className=" grid gap-y-4 ">
Expand Down

0 comments on commit a8bf1c2

Please sign in to comment.