{#-
Template file for the header.
-#}
{%- set hamburger -%}
{%- endset -%}
{%- macro home_link(logo=false) -%}
{%- if logo -%}
{%- endif -%}
{{ docstitle }}
{%- endmacro -%}
{%- macro extra_link(text, url) -%}
{% if url is string %}
{% set url = url if url.startswith("http") else pathto(url) %}
{%- set active = "bg-gray-700 border-b-4 border-brand" if pagename in url else "bg-transparent" -%}
{{ text }}
{% endif %}
{% if url is mapping %}
{% set link = url.link if url.link.startswith("http") else pathto(url.link) %}
{{ url.icon }}
{% endif %}
{%- endmacro -%}