Browse Source

Fixed title when viewing system blog post

tags/2.0.3
Teknikode 4 years ago
parent
commit
ba0c9cbf23
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      Teknik/Areas/Blog/Controllers/BlogController.cs

+ 8
- 1
Teknik/Areas/Blog/Controllers/BlogController.cs 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);

Loading…
Cancel
Save