Adding Skeleventy-based site sources.
This commit is contained in:
parent
ac7f2e6002
commit
28a89401ff
79 changed files with 2183 additions and 0 deletions
22
sources/site/includes/components/nav.njk
Normal file
22
sources/site/includes/components/nav.njk
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
<nav id="nav" class="nav box-hidden mobileXL:box-block" aria-label="Primary">
|
||||
|
||||
{% set navigation = collections.all | eleventyNavigation %}
|
||||
|
||||
<ul class="menu mobileXL:box-flex">
|
||||
|
||||
{%- for item in navigation %}
|
||||
|
||||
<li class="item">
|
||||
|
||||
<a href="{{ item.url | url }}" class="link box-block color-white text-400 weight-bold pl-300 pr-300 {{ 'active' if item.url === page.url }}" {{ 'aria-current=page' if item.url === page.url }}>{{ item.title }}</a>
|
||||
|
||||
</li>
|
||||
|
||||
{%- endfor %}
|
||||
|
||||
<!--<li class="item"><a href="https://bashelton.com" class="link box-block color-white text-400 pl-300">bashelton.com</a></li>-->
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
Loading…
Reference in a new issue