{% assign pp = page.path | split: '/' %} {% if pp[1] == 'archived' %} {% assign relative_path = 'software/archived' %} {% else %} {% assign relative_path = 'software' %} {% endif %}