Blog index:
on regroupe par titre, indifféremment de l'auteur.
This commit is contained in:
parent
48f50f8a26
commit
253f41be74
4 changed files with 17 additions and 15 deletions
|
|
@ -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?}")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue