Pagination
All parameters
Preview
{% pagination previous_url="?page=1" next_url="?page=3" %}
Parameters
| Name | Type | Requirement | Default | Choices | Description |
|---|---|---|---|---|---|
page_obj
|
Page
|
Optional | — | — | The current page of a Paginator. |
query
|
dict
|
Optional | — | — | Query params to keep on the links. |
previous_url
|
str
|
Optional | — | — | Link to the previous page. |
next_url
|
str
|
Optional | — | — | Link to the next page. |
Select variant preset
Background colour
Viewport width
Zoom level
{% pagination previous_url="?page=1" next_url="?page=3" %}
<nav class="pagination " aria-label="Pages">
<a class="pagination__link" href="?page=1" rel="prev">← Previous</a>
<a class="pagination__link pagination__link--next"
href="?page=3"
rel="next">Next →</a>
</nav>