Charts, login, manage queue, styling
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
@{
|
||||
var blogSelection = CurrentPage.Site().FirstChild("BlogPostRepository").Children("BlogPost").Where("Visible");
|
||||
}
|
||||
<div role="content">
|
||||
<section class="light blogarchive equalizer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
@if (!blogSelection.Any())
|
||||
{
|
||||
<div>No news items to display.</div>
|
||||
}
|
||||
@foreach (var post in blogSelection)
|
||||
{
|
||||
<div class="col-sm-6">
|
||||
<div class="content equal">
|
||||
<a href="@post.Url">
|
||||
<div class="date">@post.CreateDate.ToLongDateString()</div>
|
||||
<h2>@post.Name</h2>
|
||||
<p>@Umbraco.Truncate(post.Introduction, 240, true)</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
Reference in New Issue
Block a user