Added heade component which includes the main navigation

This commit is contained in:
Claudia Reynders 2022-04-24 16:40:53 +02:00
parent a7cfc2682d
commit 40575c70e3
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
{% set navItems = collections.all | eleventyNavigation %}
<header role="banner">
<nav role="navigation" aria-label="main navigation" >
<ul>
{%- for item in navItems %}
<li>
<a href="{{ item.url }}">{{ item.key }}</a>
</li>
{%- endfor -%}
</ul>
</nav>
</header>