{% endprovide %}
{% end %}
{% def site_nav_link(href, label, glyph="", external=false, match="", active=false, cls="") %}
{# @consumes _site_nav_current_path from: site_header — falls back to "" #}
{% set _cp = consume("_site_nav_current_path", "") if match else "" %}
{% set _active = active if not match else ((_cp == href) if match == "exact" else (_cp == href or _cp.startswith(href ~ "/")) if match == "prefix" else active) %}
{%- if glyph %}{{ glyph }}{% end -%}
{{ label -}}
{% end %}