@model Orchard.Blogs.ViewModels.BlogPostArchiveViewModel @using Orchard.Blogs.Extensions; @{ Style.Require("BlogsArchives"); Script.Require("BlogsArchives"); }

@T("Archives")

@if (Model.Archives.Count() > 20) { } else if (Model.Archives.Count() > 0) { @Html.UnorderedList(Model.Archives, (t, i) => Html.Link(string.Format("{0:MMMM yyyy} ({1})", t.Key.ToDateTime(), t.Value), Url.BlogArchiveMonth(Model.BlogPart.Slug, t.Key.Year, t.Key.Month)), "archiveMonthList") } else {
@T("None found")
}