{% macro menu_entry(url, title, icon, current) %}
    <li class="nav-item {% if current %}active{% endif %}">
        <a class="nav-link" href="{{ url }}"><i class="fa-fw {{ icon }}"></i> {{ title }}</a>
    </li>
{% endmacro %}

{% macro document_link(document) %}
    <i class="fa-fw {{ fa(document.metadata.icon ?? 'document', document.metadata.iconType ?? 'regular') }}"></i>
    {{ document.metadata.title }}
{% endmacro %}