{% macro navigation(tree, baseUrl, current) %}
    <li class="cl-bs-html-li">
        <a class="cl-bs-html-a" href="{{ baseUrl + 'index.html#' + baseUrl + tree.relativePath }}">
            {{ tree.name }}

            {% if tree.children %}
                <span class="cl-bs-caret"></span>
            {% endif %}
        </a>
        {% if tree.children %}
            <ul class="cl-bs-html-ul cl-bs-dropdown-menu">
                {% for child in tree.children %}
                    {{ navigation(child, baseUrl, current) }}
                {% endfor %}
            </ul>
        {% endif %}
    </li>
{% endmacro %}