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