Skip to content

Commit

Permalink
fix: Fixed wrong pagination paths
Browse files Browse the repository at this point in the history
  • Loading branch information
its-laika committed Oct 23, 2024
1 parent a28a6d0 commit e1eee02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NanoBlog/Services/Generation/BlogGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private static string BuildNavigation(int pageNumber, int pageCount)
{
navigation.Append(@$"
<li id='nav-following-page'>
<a href='{pageNumber + 1}'>{pageNumber + 2}</a>
<a href='../{pageNumber + 1}'>{pageNumber + 2}</a>
</li>");
}

Expand All @@ -101,7 +101,7 @@ private static string BuildNavigation(int pageNumber, int pageCount)
{
navigation.Append(@$"
<li id='nav-previous-page'>
<a href='{pageNumber - 1}'>{pageNumber}</a>
<a href='../{pageNumber - 1}'>{pageNumber}</a>
</li>");
}

Expand Down

0 comments on commit e1eee02

Please sign in to comment.