Merge branch 'master' of code.ungleich.ch:ungleich-public/ungleich-staticcms

This commit is contained in:
Nico Schottelius 2019-11-18 16:04:18 +01:00
commit a68d366f4e
2 changed files with 11 additions and 2 deletions

View file

@ -15,3 +15,6 @@ permissions: build
build:
lektor build -O $(BUILDDIR)
clean:
rm -rf $(BUILDDIR)

View file

@ -5,10 +5,16 @@
{% else %}
<span class="disabled">&laquo; Previous</span>
{% endif %} |
{{ pagination.page }} |
{% for page in range(pagination.page + 1, pagination.pages + 1)[:5] %}
{% for page in range(1, pagination.pages + 1) %}
{% if page != pagination.page %}
<a href="{{ pagination.for_page(page)|url }}">{{ page }}</a> |
{% else %}
{{ pagination.page }} |
{% endif %}
{% endfor %}
{% if pagination.has_next %}
<a href="{{ pagination.next|url }}">Next &raquo;</a>
{% else %}