Skip to content

Commit

Permalink
Merge pull request #72 from laughk/update-spec-of-pagination
Browse files Browse the repository at this point in the history
feat: update spec of pagination
  • Loading branch information
laughk authored Apr 16, 2023
2 parents f02cd60 + 147e812 commit 092ff04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/modules/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<li>
<a {{ class_str }} href="{{ SITEURL }}/{{ page_name }}.html">{{ num }}</a>
</li>
{% elif (num - articles_page.number)|abs <= 3 or num == articles_paginator.num_pages %}
{% elif (num - articles_page.number)|abs <= 3 or ((num - articles_page.number)|abs + 1) % 5 == 0 or (num - articles_paginator.num_pages)|abs <= 2 %}
<li>
<a {{ class_str }} href="{{ SITEURL }}/{{ page_name }}{{ num }}.html">{{ num }}</a>
</li>
Expand Down

0 comments on commit 092ff04

Please sign in to comment.