fix: oops, page 2 was completely missing.
The model contains a 1-based page number, whereas GetBlogPosts wants 0-based index, causing an entire page to be missing.
This commit is contained in:
parent
58797b82ca
commit
cf4d92c035
@ -9,7 +9,7 @@
|
||||
@await Html.PartialAsync("Partials/_MastodonStatus")
|
||||
|
||||
<div id="all-blog-posts">
|
||||
@foreach (IBlogPost post in BlogPostService.GetBlogPosts(Model.PageNumber))
|
||||
@foreach (IBlogPost post in BlogPostService.GetBlogPosts(Model.PageNumber - 1))
|
||||
{
|
||||
@await Html.PartialAsync("Partials/_BlogCard", post)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user