diff --git a/src/Umbraco.SampleSite.Website/Views/Master.cshtml b/src/Umbraco.SampleSite.Website/Views/Master.cshtml
index f9e875a9..fae5e059 100644
--- a/src/Umbraco.SampleSite.Website/Views/Master.cshtml
+++ b/src/Umbraco.SampleSite.Website/Views/Master.cshtml
@@ -1,11 +1,9 @@
-@using ContentModels = Umbraco.Web.PublishedContentModels;
-@using Umbraco.Core
-@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
+@inherits UmbracoTemplatePage
@{
Layout = null;
// Get basic design settings from the homepage
- ContentModels.Home home = Model.Content.Site() as ContentModels.Home;
+ var home = (Home)Model.Content.Site();
var colorTheme = Umbraco.GetPreValueAsString(home.ColorTheme);
var font = Umbraco.GetPreValueAsString(home.Font);
}
diff --git a/src/Umbraco.SampleSite.Website/Views/Partials/Navigation/TopNavigation.cshtml b/src/Umbraco.SampleSite.Website/Views/Partials/Navigation/TopNavigation.cshtml
index 593be54e..a45d3c62 100644
--- a/src/Umbraco.SampleSite.Website/Views/Partials/Navigation/TopNavigation.cshtml
+++ b/src/Umbraco.SampleSite.Website/Views/Partials/Navigation/TopNavigation.cshtml
@@ -5,7 +5,7 @@
var selection = site.Children.Where(x => x.IsVisible());
}
-@CurrentPage.Site().Name
+@site.Name
@foreach (var item in selection)
{
@item.Name