Fix 'page 1' special treatment in pagination docs (#8230)

Merge pull request 8230
This commit is contained in:
Felix Breidenstein 2020-07-01 08:35:14 +02:00 committed by GitHub
parent d596ceb5c2
commit 148608256a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,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="{{ paginator.previous_page_path | relative_url }}">{{ page }}</a> <a href="{{ '/' | relative_url }}">{{ 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 %}