{% if "tag:" in current %}tag:{% endif %}{{ current | replace("~", "/") | replace("tag:", " ") }} {% for branch in branches %} {% if branch[0] != current | replace("~", "/") | replace("tag:", " ") %} {% if branch[1] == "tag" %}tag: {% endif %}{{ branch[0] }} {% endif %} {% endfor %} {% include "tree-view.html" %}