{% macro nav_link(content, href, current_page, section=False, current_sections=False, props='') %}
<a
    href="{{ href }}"
    {{ props }}
    {% if current_page == href %}
        aria-current="page"
    {% elif section and section in current_sections %}
        aria-current="location"
    {% endif %}
>{{ content }}</a>
{% endmacro nav_link %}