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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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