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:
Oliver Booth 2024-05-06 17:40:03 +01:00
parent 58797b82ca
commit cf4d92c035
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
1 changed files with 1 additions and 1 deletions

View File

@ -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)