{% block sidebar_menu %} {% for item in project_menu %} {% if item.name %} {% if item.sublinks %} {% else %} {% endif %} {% endif %} {% endfor %} {% if has_docs %} {% endif %} {% endblock %}