Fix of a bug in the pagination section (#8890)

Merge pull request 8890
This commit is contained in:
Simon Wagar
2024-09-15 16:10:33 +02:00
committed by GitHub
parent 0629bba297
commit 34e35284aa

View File

@@ -155,7 +155,7 @@ page with links to all but the current page.
{% if page == paginator.page %}
<em>{{ page }}</em>
{% elsif page == 1 %}
<a href="{{ '/' | relative_url }}">{{ page }}</a>
<a href="{{ site.paginate_path | relative_url | replace: 'page:num/', '' }}">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | relative_url | replace: ':num', page }}">{{ page }}</a>
{% endif %}