page nav for photo gallery

This commit is contained in:
Rupus Reinefjord 2018-01-12 00:19:34 +01:00
parent a528892ac8
commit 15b1d3999a
4 changed files with 28 additions and 2 deletions

View file

@ -16,5 +16,14 @@
</a>
{% endfor %}
</div>
<nav>
{% if page > 1 %}
<a href="{{ url_for('photography', page=page-1) }}" class="nav-item next">&larr; Newer</a>
{% endif %}
{% if has_next %}
<a href="{{ url_for('photography', page=page+1) }}" class="nav-item prev">Older &rarr;</a>
{% endif %}
</nav>
</main>
{% endblock %}