diff --git a/Website/Startup.cs b/Website/Startup.cs index 6d6adf4..e129e69 100644 --- a/Website/Startup.cs +++ b/Website/Startup.cs @@ -60,11 +60,11 @@ namespace Website routes.MapRoute( name: "blogPages", template: "blog/{action}/{page:int}", - new { controller = "Blog", action = "Page", page = 1 }); + defaults: new { controller = "Blog", action = "Page", page = 1 }); routes.MapRoute( name: "blogView", template: "blog/view/{url}", - new { controller = "Blog", action = "Entry"}); + defaults: new { controller = "Blog", action = "Entry"}); routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); diff --git a/Website/Views/Blog/Entry.cshtml b/Website/Views/Blog/Entry.cshtml index 39227f2..0409de9 100644 --- a/Website/Views/Blog/Entry.cshtml +++ b/Website/Views/Blog/Entry.cshtml @@ -1,4 +1,4 @@ -@model BlogPostViewModel; +@model BlogPostViewModel @{ ViewData["Title"] = Model.Title; diff --git a/Website/Views/Blog/Page.cshtml b/Website/Views/Blog/Page.cshtml index f4df8b4..d168620 100644 --- a/Website/Views/Blog/Page.cshtml +++ b/Website/Views/Blog/Page.cshtml @@ -1,4 +1,4 @@ -@model BlogViewModel; +@model BlogViewModel @{ ViewData["Title"] = "Blog"; diff --git a/Website/Views/Home/Index.cshtml b/Website/Views/Home/Index.cshtml index bb55efb..c666c49 100644 --- a/Website/Views/Home/Index.cshtml +++ b/Website/Views/Home/Index.cshtml @@ -1,4 +1,4 @@ -@model BlogPostViewModel; +@model BlogPostViewModel @{ ViewData["Title"] = "Home"; diff --git a/Website/Views/Shared/_Layout.cshtml b/Website/Views/Shared/_Layout.cshtml index c321301..e74d672 100644 --- a/Website/Views/Shared/_Layout.cshtml +++ b/Website/Views/Shared/_Layout.cshtml @@ -88,6 +88,7 @@