How to set page title? #951
-
I only know how to set the docs title, but how to set the titles of other pages (such as home)? |
Beta Was this translation helpful? Give feedback.
Answered by
Gitstar-OC
Oct 17, 2024
Replies: 3 comments 7 replies
-
Where do you want to set it ? |
Beta Was this translation helpful? Give feedback.
6 replies
-
Refer to this https://fumadocs-dev.vercel.app/docs/ui/page-conventions |
Beta Was this translation helpful? Give feedback.
0 replies
-
Okay, I understand. Edit in (home)/layout.tsx instead of page.tsx, and add the following code: import type { Metadata } from 'next'
export const metadata: Metadata = {
title: '...',
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
oh, you can set it here
In the layout.tsx file or you can use the next-seo for it.