1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Fixed title when viewing system blog post

This commit is contained in:
Uncled1023 2016-02-04 13:04:53 -08:00
parent b6809d4390
commit ba0c9cbf23

View File

@ -83,7 +83,14 @@ namespace Teknik.Areas.Blog.Controllers
{
PostViewModel model = new PostViewModel(post);
ViewBag.Title = model.Title + " - " + username + "'s Blog - " + Config.Title;
if (post.System)
{
ViewBag.Title = model.Title + " - Teknik Blog - " + Config.Title;
}
else
{
ViewBag.Title = model.Title + " - " + username + "'s Blog - " + Config.Title;
}
return View("~/Areas/Blog/Views/Blog/ViewPost.cshtml", model);
}
return View("~/Areas/Blog/Views/Blog/ViewPost.cshtml", null);