diff --git a/src/Views/Blog/Index.cshtml b/src/Views/Blog/Index.cshtml index 78068335..37f33357 100644 --- a/src/Views/Blog/Index.cshtml +++ b/src/Views/Blog/Index.cshtml @@ -2,6 +2,7 @@ @inject IOptionsSnapshot settings @{ int currentPage = int.Parse(ViewContext.RouteData.Values["page"] as string ?? "0"); + int pageCount = Model.ToList().Count; } @foreach (var post in Model) @@ -10,7 +11,7 @@ }