2022-08-08 04:31:56 +00:00
|
|
|
<header>
|
|
|
|
<div class="main brand">
|
2022-08-09 04:37:39 +00:00
|
|
|
<a href={{ config.base_url }}><img class=logo src="/favicon.svg" alt=logo />{{ config.title }}</a>
|
2022-08-08 04:31:56 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<nav>
|
|
|
|
{% 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-13 04:45:01 +00:00
|
|
|
<a href={{ menu.url }} target="_blank" rel="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>
|