@inherits Umbraco.Web.Macros.PartialViewMacroPage @{ var blogSelection = CurrentPage.Site().FirstChild("BlogPostRepository").Children("BlogPost").Where("Visible"); }
@if (!blogSelection.Any()) {
No news items to display.
} @foreach (var post in blogSelection) { }