How can I make part of <title> persistent across different pages?
Answered
Silver posted this in #help-forum
SilverOP
Since this is the way of defining a page's title:
export const metadata: Metadata = {
title: "title here | My Website",
description: ".Description here...",
};
How can I make the "| My Website" part persistent across the rest of the pages and only the change what's before it ("title here")?
export const metadata: Metadata = {
title: "title here | My Website",
description: ".Description here...",
};
How can I make the "| My Website" part persistent across the rest of the pages and only the change what's before it ("title here")?
Answered by riský
you can make use of [
template propetery](https://nextjs.org/docs/app/api-reference/functions/generate-metadata#template)2 Replies
@Silver Since this is the way of defining a page's title:
export const metadata: Metadata = {
title: "title here | My Website",
description: ".Description here...",
};
How can I make the "| My Website" part persistent across the rest of the pages and only the change what's before it ("title here")?
you can make use of [
template propetery](https://nextjs.org/docs/app/api-reference/functions/generate-metadata#template)Answer
I mean usaly don't you wait for the to respond, but it is so simple and they haven't 
