+
<%=_Encoded("Archives") %>
<%
+ if (Model.Archives.Count() > 0) {
+ if (Model.Archives.Count() > 20) { %>
+
<%
+ int lastYear = Model.Archives.First().Key.Year;
+ int firstYear = Model.Archives.Last().Key.Year;
+
+ for (int year = lastYear; year >= firstYear; year--) {
+ var yearMonths = Model.Archives.Where(m => m.Key.Year == year);
+
+ if (year == lastYear) { %>
+ -
+
<%=year %>
<%
+ }
+ else { %>
+ -
+
<%=year %> (<%=yearMonths.Sum(ym => ym.Value) %>)
<%
+ } %>
+ <%=Html.UnorderedList(yearMonths, (t, i) => Html.Link(string.Format("{0:MMMM} ({1})", t.Key.ToDateTime(), t.Value), Url.BlogArchiveMonth(Model.Blog.Slug, t.Key.Year, t.Key.Month)), "archiveMonthList") %>
+ <%
+ } %>
+
<%
+ }
+ else { %>
+ <%=Html.UnorderedList(Model.Archives, (t, i) => Html.Link(string.Format("{0:MMMM yyyy} ({1})", t.Key.ToDateTime(), t.Value), Url.BlogArchiveMonth(Model.Blog.Slug, t.Key.Year, t.Key.Month)), "archiveMonthList") %><%
+ }
+ }
+ else { %>
+
<%=_Encoded("None found")%>
<%
+ } %>
+
\ No newline at end of file
diff --git a/src/Orchard.Web/Themes/Green/Views/DisplayTemplates/Items/Blogs.Blog.ascx b/src/Orchard.Web/Themes/Green/Views/DisplayTemplates/Items/Blogs.Blog.ascx
index 5e505f72c..e4904dd4a 100644
--- a/src/Orchard.Web/Themes/Green/Views/DisplayTemplates/Items/Blogs.Blog.ascx
+++ b/src/Orchard.Web/Themes/Green/Views/DisplayTemplates/Items/Blogs.Blog.ascx
@@ -9,5 +9,4 @@
-<% Html.Zone("primary", ":manage :metadata"); %>
+<% Html.Zone("primary"); %>
diff --git a/src/Orchard.Web/Themes/Green/Views/DisplayTemplates/Items/Blogs.BlogPost.ascx b/src/Orchard.Web/Themes/Green/Views/DisplayTemplates/Items/Blogs.BlogPost.ascx
new file mode 100644
index 000000000..cc192b0cd
--- /dev/null
+++ b/src/Orchard.Web/Themes/Green/Views/DisplayTemplates/Items/Blogs.BlogPost.ascx
@@ -0,0 +1,5 @@
+<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl