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:
parent
b6809d4390
commit
ba0c9cbf23
@ -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…
Reference in New Issue
Block a user