{% if current_index > 0 %}
{% assign prev_url = order[current_index | minus: 1] %}
← Previous
{% endif %}
{% assign next_index = current_index | plus: 1 %}
{% if next_index < order.size %}
{% assign next_url = order[next_index] %}
Next →
{% endif %}