nly">(current)</span></a>
                        </li>
                        {%else%}
                        <li class="page-item"><a href="{{ url_for('shop.subcategory',
                sub_id=subcategory.id, page=loop.index) }}" class="page-link"> {{x}} </a></li>
                        {%endif%}
                        {%endfor%}
                        {% if page != total_pages %}
                        <li class="page-item"><a href="{{ url_for('shop.subcategory',
                sub_id=subcategory