HTML title is wrong in the blog list page

Topics: Troubleshooting
Sep 27, 2011 at 5:24 PM

I'm not sure if this is a known issue, so I'm posting it here as a discussion instead of creating an issue right away.

I'm using Orchard 1.2 to create a blog. The name of the blog, say "Test Blog", displays correctly in the HTML title tag when the blog is created and there are no posts. After creating the first post, however, the HTML title in the blog list view is set to the title of the post. Keep adding new posts, but the HTML title is always the first post's title. Shouldn't it be showing the name of the blog instead?

Sep 27, 2011 at 5:44 PM

Never mind... it was a mistake in one of my theme files. I was doing this:

if (Model.Title != null) { Layout.Title = Model.Title; }

in my Content-BlogPost.cshtml file.