<nav>
  <ul class="pw-pagination">
    {% if page.has_previous %}
      <li class="pw-pagination-item">
        <a class="pw-pagination-link"
           href="?page={{ page.previous_page_number }}">Prev</a>
      </li>
    {% else %}
      <li class="pw-pagination-item disabled">
        <a class="pw-pagination-link">Prev</a>
      </li>
    {% endif %}
    {% for num in page.paginator.page_range %}
      {% if num == page.number %}
        <li class="pw-pagination-item active">
          <span class="pw-pagination-link">{{ num }}</span>
        </li>
      {% else %}
        <li class="pw-pagination-item">
          <a class="pw-pagination-link" href="?page={{ num }}">{{ num }}</a>
        </li>
      {% endif %}
    {% endfor %}
    {% if page.has_next %}
      <li class="pw-pagination-item">
        <a class="pw-pagination-link" href="?page={{ page.next_page_number }}">Next</a>
      </li>
    {% else %}
      <li class="pw-pagination-item disabled">
        <span class="pw-pagination-link">Next</span>
      </li>
    {% endif %}
  </ul>
</nav>
