@{ Style.Include("site.css"); // cool stuff goes up here var homeUrl = Href("~/"); // Zone is an alias for Display Func Zone = x => Display(x); if (Model.Sidebar != null) { Html.AddPageClassNames(new[]{"has-sidebar"}); } }
@* needs to be the page title, not page (head) title... *@

@WorkContext.CurrentSite.SiteName

@if(Model.Header != null) { }
@if(Model.Navigation != null) { }
@if(Model.Messages != null) {
@Zone(Model.Messages)
} @* This code would inject text into the Featured zone. @{WorkContext.Layout.Featured.Add("just some text in featured");} *@ @{ WorkContext.Layout.Featured.Add(New.Featured(insertMessage:"This is a featured blog post.")); } @if(Model.Featured != null) { } @{ WorkContext.Layout.Recent.Add(New.Recent()); } @if(Model.Featured != null) {
@Zone(Model.Recent)
} @* the model content for the page is in the Content zone @ the default position (nothing, zero, zilch) *@ @if(Model.Content != null) {
@Zone(Model.Content)
} else {
Let's take over the home page
} @if(Model.Sidebar != null) { } @if(Model.Footer != null) {
@Zone(Model.Footer)
} else { }