Reputation: 774
For SEO reasons I want to add individual page titles to my web pages instead of general site name as it is done by default.
Here is what I have figured out by myself:
I need to copy to my theme and modify Document.cshtml
section:
<title>@Html.Title(title, siteName)</title>
I need to insert there Title
content part that is included in every page.
How do I do that?
Upvotes: 2
Views: 2643
Reputation: 4609
From your view, do this:
@{
Html.TitleForPage("Mr1159pm's Page Title");
}
Upvotes: 4