Blog index:

on regroupe par titre, indifféremment de l'auteur.
This commit is contained in:
2017-10-10 22:06:25 +02:00
parent ea4c5f82ad
commit c931581375
4 changed files with 17 additions and 15 deletions

View File

@ -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?}")]