display only select items in header bar
This commit is contained in:
parent
91aa5cc835
commit
f8f105a766
1 changed files with 4 additions and 4 deletions
|
|
@ -15,11 +15,11 @@
|
||||||
<nav>
|
<nav>
|
||||||
<a href="/" id="site-root" class="nav-menu-item">rpqt.fr</a>
|
<a href="/" id="site-root" class="nav-menu-item">rpqt.fr</a>
|
||||||
<ul class="nav-menu">
|
<ul class="nav-menu">
|
||||||
{{ for item of nav.menu().children }}
|
{{ for item of ["now", "projects", "socials"] }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ item.data.url }}" class="nav-menu-item"
|
<a href="/{{ item }}" class="nav-menu-item"
|
||||||
{{ url.startsWith(item.data.url) ? 'id="header-nav-current"' : '' }}
|
{{ url.startsWith("/" + item) ? 'id="header-nav-current"' : '' }}
|
||||||
>{{ item.slug }}</a>
|
>{{ item }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ /for }}
|
{{ /for }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue