mat.services/templates/partials/nav.html

17 lines
585 B
HTML
Raw Normal View History

2022-08-08 04:31:56 +00:00
<header>
<div class="main brand">
2022-08-14 17:05:27 +00:00
<a href={{ config.base_url }}><img class=logo src="{{ get_url(path=config.extra.favicon, cachebust=true) }}"
alt="" />{{ 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-08-08 04:31:56 +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-08-14 13:46:13 +00:00
<a href={{ menu.url }} target="_blank" rel="me noopener noreferrer">{{ menu.name }}</a>
2022-08-08 04:31:56 +00:00
{%- else %}
2022-08-12 23:00:13 +00:00
<a href={{ get_url(path=menu.url) }}>{{ menu.name }}</a>
2022-08-08 04:31:56 +00:00
{%- endif -%}
{% endfor %}
</nav>
</header>