Skip to content

Commit

Permalink
Fixed an erroneous decrement which was meant to be removed before sub…
Browse files Browse the repository at this point in the history
…mitting previous PR: (madskristensen#120)

Caused the 'Older' button to stop showing a page earlier than intended.
  • Loading branch information
rbleattler authored and madskristensen committed Nov 12, 2019
1 parent ad7347e commit 58804ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Views/Blog/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@inject IOptionsSnapshot<BlogSettings> settings
@{
int currentPage = int.Parse(ViewContext.RouteData.Values["page"] as string ?? "0");
int pageCount = Model.ToList().Count-1;
int pageCount = Model.ToList().Count;
}

@foreach (var post in Model)
Expand Down

0 comments on commit 58804ff

Please sign in to comment.