b9bbd07e6e
Initial commit with lektor: ```bash lektor quickstart ```
15 lines
475 B
HTML
15 lines
475 B
HTML
{% macro render_pagination(pagination) %}
|
|
<div class="pagination">
|
|
{% if pagination.has_prev %}
|
|
<a href="{{ pagination.prev|url }}">« Previous</a>
|
|
{% else %}
|
|
<span class="disabled">« Previous</span>
|
|
{% endif %}
|
|
| {{ pagination.page }} |
|
|
{% if pagination.has_next %}
|
|
<a href="{{ pagination.next|url }}">Next »</a>
|
|
{% else %}
|
|
<span class="disabled">Next »</span>
|
|
{% endif %}
|
|
</div>
|
|
{% endmacro %}
|