fixed article ordering in various places
This commit is contained in:
parent
c226331974
commit
83054d97dc
|
@ -4,7 +4,7 @@
|
|||
<p>No Articles</p>
|
||||
} else {
|
||||
<div class="flex flex-col gap-4">
|
||||
@foreach (var article in Articles) {
|
||||
@foreach (var article in Articles.OrderByDescending(a => a.PublishDate)) {
|
||||
<ArticleCard Article="article" />
|
||||
}
|
||||
</div>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<section>
|
||||
<h2 class="text-2xl lg:text-4xl mb-3">@Localizer["Articles"]</h2>
|
||||
<ArticleTileArray>
|
||||
@foreach (var article in User.Articles) {
|
||||
@foreach (var article in User.Articles.OrderByDescending(a => a.PublishDate)) {
|
||||
<ArticleTile Article="article" />
|
||||
}
|
||||
</ArticleTileArray>
|
||||
|
|
Loading…
Reference in a new issue