2022-08-08 04:31:56 +00:00
|
|
|
<header>
|
|
|
|
<div class="main brand">
|
2022-08-14 00:12:45 +00:00
|
|
|
<a href={{ config.base_url }}><img class=logo src="/image/favicon.svg" 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-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>
|