diff --git a/Yavsc/Controllers/BlogspotController.cs b/Yavsc/Controllers/BlogspotController.cs index 6ffdf26d..a1dabdab 100644 --- a/Yavsc/Controllers/BlogspotController.cs +++ b/Yavsc/Controllers/BlogspotController.cs @@ -61,8 +61,9 @@ namespace Yavsc.Controllers .Include(p=>p.ACL).Where(p=>p.AuthorId == uid || p.Visible && p.ACL.Count == 0); } - return View(posts.OrderByDescending( p=> p.DateModified) - .GroupBy(p=> new BlogIndexKey { Title = p.Title, AuthorId = p.AuthorId } ).Skip(skip).Take(maxLen)); + return View(posts.OrderByDescending( p=> p.DateCreated) + + .GroupBy(p=> p.Title).Skip(skip).Take(maxLen)); } [Route("/Title/{id?}")] diff --git a/Yavsc/Views/Blogspot/Index.cshtml b/Yavsc/Views/Blogspot/Index.cshtml index 9cdb39d1..201f40de 100644 --- a/Yavsc/Views/Blogspot/Index.cshtml +++ b/Yavsc/Views/Blogspot/Index.cshtml @@ -1,9 +1,6 @@ -@model IEnumerable> +@model IEnumerable> @{ ViewData["Title"] = "Blogs, l'index"; - // Regroup!?! - @foreach (var group in Model) { - } } @section header {