{% if page.index %} {% assign brand = page.index | split:"$" %} {% endif %} {% if page.type == 'project' or page.type == 'subpage' %} {% capture prefix %}/web/{{brand[0]}}/{% endcapture %} {% elsif page.type == 'frozen'%} {% capture prefix %}/frozen/{{brand[0]}}/{% endcapture %} {% elsif page.type == 'index'%} {% capture prefix %}{{brand[0]}}{% endcapture %} {% endif %}