Skip to content

Commit 4ceac17

Browse files
committed
feat(desktop): show links on the page instead of in a modal
1 parent ca47cde commit 4ceac17

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/_includes/nav.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<nav class="navbar navbar-dark">
1+
<nav class="navbar navbar-expand-lg navbar-dark">
22
<a class="d-inline-block" href="/"
33
><img width="88" height="46" src="/assets/compiler_logo_stacked.svg" alt="Compiler logo"
44
/></a>
@@ -13,7 +13,18 @@
1313
>
1414
<span class="navbar-toggler-icon"></span>
1515
</button>
16-
<div class="modal fade" tabindex="-1" id="navbarToggler" aria-label="menu">
16+
<div class="d-none d-lg-block container-fluid">
17+
<ul class="navbar-nav me-auto mb-2 mb-lg-0 d-flex justify-content-end">
18+
{% for nav_item in site.data.nav %}
19+
<li class="nav-item">
20+
<a class="nav-link" href="{{ nav_item.path }}" {% if nav_item.target %} target="{{ nav_item.target }}" {% endif %}
21+
>{{ nav_item.name }}</a
22+
>
23+
</li>
24+
{% endfor %}
25+
</ul>
26+
</div>
27+
<div class="d-lg-none modal fade" tabindex="-1" id="navbarToggler" aria-label="menu">
1728
<div class="modal-dialog modal-fullscreen">
1829
<div class="modal-content">
1930
<div class="modal-header border-0 d-flex justify-content-end">

0 commit comments

Comments
 (0)