Merge branch 'master' of code.ungleich.ch:ungleich-public/ungleich-staticcms
This commit is contained in:
commit
a68d366f4e
2 changed files with 11 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -15,3 +15,6 @@ permissions: build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
lektor build -O $(BUILDDIR)
|
lektor build -O $(BUILDDIR)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf $(BUILDDIR)
|
|
@ -5,10 +5,16 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="disabled">« Previous</span>
|
<span class="disabled">« Previous</span>
|
||||||
{% endif %} |
|
{% 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> |
|
<a href="{{ pagination.for_page(page)|url }}">{{ page }}</a> |
|
||||||
|
{% else %}
|
||||||
|
{{ pagination.page }} |
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if pagination.has_next %}
|
{% if pagination.has_next %}
|
||||||
<a href="{{ pagination.next|url }}">Next »</a>
|
<a href="{{ pagination.next|url }}">Next »</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in a new issue