Skip to content

Commit

Permalink
Fix pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemiii91 committed May 18, 2024
1 parent e8d0dc8 commit f36b31d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def generate_page_links(current_page: int, num_pages: int) -> str:
buffer += generate_page_link(0, current_page)
buffer += " " + generate_page_link_range(range(1, cutoff + 2), current_page) if is_low else NB_SPACE + ellipsis
buffer += " " if is_low or is_high \
else LB_SPACER + generate_page_link_range(range(current_page - half_cut, current_page + half_cut + 1), current_page) + LB_SPACER
else LB_SPACER + generate_page_link_range(range(current_page - half_cut, current_page + half_cut + 1), current_page) + " "
buffer += generate_page_link_range(range(last_page - cutoff - 1, last_page), current_page) + " " if is_high else ellipsis + NB_SPACE
buffer += generate_page_link(last_page, current_page)
return buffer
Expand Down
2 changes: 1 addition & 1 deletion generated/custom/page-06.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@

</td><td align="center">

[&nbsp;1&nbsp;](index.md)&nbsp;&hellip; &nbsp;[&nbsp;4&nbsp;](page-04.md) [&nbsp;5&nbsp;](page-05.md) &nbsp;**6**&nbsp; [&nbsp;7&nbsp;](page-07.md) [&nbsp;8&nbsp;](page-08.md) &nbsp;&hellip;&nbsp;[&nbsp;13&nbsp;](page-13.md)
[&nbsp;1&nbsp;](index.md)&nbsp;&hellip; &nbsp;[&nbsp;4&nbsp;](page-04.md) [&nbsp;5&nbsp;](page-05.md) &nbsp;**6**&nbsp; [&nbsp;7&nbsp;](page-07.md) [&nbsp;8&nbsp;](page-08.md) &hellip;&nbsp;[&nbsp;13&nbsp;](page-13.md)

</td><td>

Expand Down
2 changes: 1 addition & 1 deletion generated/custom/page-07.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@

</td><td align="center">

[&nbsp;1&nbsp;](index.md)&nbsp;&hellip; &nbsp;[&nbsp;5&nbsp;](page-05.md) [&nbsp;6&nbsp;](page-06.md) &nbsp;**7**&nbsp; [&nbsp;8&nbsp;](page-08.md) [&nbsp;9&nbsp;](page-09.md) &nbsp;&hellip;&nbsp;[&nbsp;13&nbsp;](page-13.md)
[&nbsp;1&nbsp;](index.md)&nbsp;&hellip; &nbsp;[&nbsp;5&nbsp;](page-05.md) [&nbsp;6&nbsp;](page-06.md) &nbsp;**7**&nbsp; [&nbsp;8&nbsp;](page-08.md) [&nbsp;9&nbsp;](page-09.md) &hellip;&nbsp;[&nbsp;13&nbsp;](page-13.md)

</td><td>

Expand Down
2 changes: 1 addition & 1 deletion generated/custom/page-08.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@

</td><td align="center">

[&nbsp;1&nbsp;](index.md)&nbsp;&hellip; &nbsp;[&nbsp;6&nbsp;](page-06.md) [&nbsp;7&nbsp;](page-07.md) &nbsp;**8**&nbsp; [&nbsp;9&nbsp;](page-09.md) [&nbsp;10&nbsp;](page-10.md) &nbsp;&hellip;&nbsp;[&nbsp;13&nbsp;](page-13.md)
[&nbsp;1&nbsp;](index.md)&nbsp;&hellip; &nbsp;[&nbsp;6&nbsp;](page-06.md) [&nbsp;7&nbsp;](page-07.md) &nbsp;**8**&nbsp; [&nbsp;9&nbsp;](page-09.md) [&nbsp;10&nbsp;](page-10.md) &hellip;&nbsp;[&nbsp;13&nbsp;](page-13.md)

</td><td>

Expand Down

0 comments on commit f36b31d

Please sign in to comment.