mat.services/templates/partials/nav.html

18 lines
636 B
HTML
Raw Normal View History

2022-08-08 04:31:56 +00:00
<header>
<div class="main brand">
2022-10-21 06:26:16 +00:00
<a href={{ config.base_url | safe }}>
<img id="logo" src="{{ get_url(path=config.extra.favicon, cachebust=true) }}" alt="circular logo" />
{{ config.title }}
</a>
2022-08-08 04:31:56 +00:00
</div>
2022-08-14 01:28:32 +00:00
<nav aria-label="Site navigation">
2022-10-21 06:26:16 +00:00
{%- for menu in config.extra.menu %}
2022-08-10 20:15:00 +00:00
{%- set external = menu.external | default(value=false) -%}
{%- if external %}
2022-10-21 06:32:07 +00:00
<a href={{ menu.url | safe }} target="_blank" rel="me noopener noreferrer">{{ menu.name | safe }}</a>
2022-08-08 04:31:56 +00:00
{%- else %}
2022-10-21 06:32:07 +00:00
<a href={{ get_url(path=menu.url) }}>{{ menu.name | safe }}</a>
2022-08-08 04:31:56 +00:00
{%- endif -%}
{% endfor %}
</nav>
</header>