{% if is_paginated %}
    <nav>
        <ul class="pagination">
        {% if page_obj.has_previous %}
            {% if first_page %}
                <li>
                    {% if search_paging %}<a href="?page={{ first_page }}&season={{ season }}&style={{ style }}&product_type={{ product_type }}&name={{ name }}">{% else %}<a href="?page={{ first_page }}">{% endif %}
                        <span><<</span>
                    </a>
                </li>
            {% endif %}
            <li>
                {% if search_paging %}<a href="?page={{ page_obj.previous_page_number }}&season={{ season }}&style={{ style }}&product_type={{ product_type }}&name={{ name }}">{% else %}<a href="?page={{ page_obj.previous_page_number }}">{% endif %}
                    <span> < </span>
                </a>
            </li>
        {% endif %}

        {% for page in page_range %}
            <li {% if page == page_obj.number %}class="active" {% endif %}>
            {% if search_paging %}<a href="?page={{ page }}&season={{ season }}&style={{ style }}&product_type={{ product_type }}&name={{ name }}">{{ page }}</a>{% else %}<a href="?page={{ page }}">{{ page }}</a>{% endif %}
            </li>
        {% endfor %}

        {% if page_obj.has_next %}
            <li>
                {% if search_paging %}<a href="?page={{ page_obj.next_page_number }}&season={{ season }}&style={{ style }}&product_type={{ product_type }}&name={{ name }}">{% else %}<a href="?page={{ page_obj.next_page_number }}">{% endif %}
                    <span> > </span>
                </a>
            </li>
            {% if last_page %}
                <li>
                    {% if search_paging %}<a href="?page={{ last_page }}&season={{ season }}&style={{ style }}&product_type={{ product_type }}&name={{ name }}">{% else %}<a href="?page={{ last_page }}">{% endif %}
                        <span> >> </span>
                    </a>
                </li>
            {% endif %}
        {% endif %}
        </ul>
    </nav>
{% endif %}