{% if versions and versions|length > 1 %} {%- set up = '../' * pagename.count('/') %} {%- set root = up ~ ('../' if frozen else '') %} {% endif %}