{% extends 'includes/base.html' %} {% block content %}

artworks

{% if artwork %} {%- for _artwork in artwork | batch(4) %} {%- for artwork in _artwork %} {%- endfor %} {%- endfor %} {% else %}

There's nothing here yet...

{% endif %}
{% if artwork %}
{% for i in range(1, total_pages + 1) %}
{% if i == page %} {{ page }} {% else %} {{ i }} {% endif %}
{% endfor %}
{% endif %}
{% endblock %}