{% if paginator.num_pages > 1 %}
<div class="row">
  <div class="col s12">
    <div class="pagination">
      {% for i in paginator.page_range %}
        <a class="pagenum{% if i == page_obj.number %} currentpage{% endif %}" href="?{% if filter %}filter={{ filter }}&{% endif %}page={{ i }}{% if show_skipped %}&show_skipped=yes{% endif %}">{{ i }}</a>
      {% endfor %}
    </div>
  </div>
</div>
{% endif %}
