Browse Source

Fixed title when viewing system blog post

master
Teknikode 6 years ago
parent
commit
ba0c9cbf23
  1. 9
      Teknik/Areas/Blog/Controllers/BlogController.cs

9
Teknik/Areas/Blog/Controllers/BlogController.cs

@ -83,7 +83,14 @@ namespace Teknik.Areas.Blog.Controllers @@ -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);

Loading…
Cancel
Save