<aside class="col-sm-3 hidden-xs">
    <ul class="menu">
        {%- for item in sidebar.children recursive %}
            {% if item.children %}
                <li>
                    <span>{{ item.title }}</span>
                    <ul>
                        {{ loop(item.children) }}
                    </ul>
                </li>
            {% else %}
                <li><a href="{{ item.link }}">{{ item.title }}</a></li>
            {% endif %}
        {%- endfor %}
    </ul>
</aside>
