ungleich-staticcms/templates/macros/pagination.html
Nico Schottelius 57d66eb0c1 init staticcms
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2019-09-24 20:30:38 +09:00

15 lines
475 B
HTML

{% macro render_pagination(pagination) %}
<div class="pagination">
{% if pagination.has_prev %}
<a href="{{ pagination.prev|url }}">&laquo; Previous</a>
{% else %}
<span class="disabled">&laquo; Previous</span>
{% endif %}
| {{ pagination.page }} |
{% if pagination.has_next %}
<a href="{{ pagination.next|url }}">Next &raquo;</a>
{% else %}
<span class="disabled">Next &raquo;</span>
{% endif %}
</div>
{% endmacro %}