|
@model IEnumerable<sBlog.Net.Domain.Entities.PostEntity>
<div id="section1" class="menu">
<h2>recent posts</h2>
<ul style="list-style-type:none;">
@foreach(var post in Model)
{
<li>
@{
var url = Url.RouteUrl("IndividualPost", new { year = post.PostYear, month = post.PostMonth, url = post.PostUrl, status = string.Empty });
var shortTitle = post.PostTitle.Length > 25 ? string.Format("{0}...", post.PostTitle.Substring(0, 25)) : post.PostTitle;
}
<a href="@url" title="@post.PostTitle">@shortTitle</a>
</li>
}
</ul>
</div>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Just another passionate software developer!
Some of the contributions to the open source world - a blog engine written in MVC 4 - sBlog.Net. Check it out
here. For the codeproject article regarding sBlog.Net click
here!
(Figuring out this section!)