Skip to content

Commit ed804c7

Browse files
Stack nav into three rows: Apps, libs, boards.
Each group gets its own centered line so the header reads top-to-bottom as Apps, Scientific libs, then Boards. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4c6df5d commit ed804c7

3 files changed

Lines changed: 26 additions & 27 deletions

File tree

_includes/header.html

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,20 @@ <h2 class="project-tagline">{{ site.description | default: "RISC-V learnings and
44

55
<nav class="site-nav" aria-label="Main navigation">
66
<div class="site-nav-groups">
7-
<ul class="site-nav-list">
8-
{% for item in site.navigation %}
9-
<li class="site-nav-item">
10-
<a
11-
href="{% if item.external %}{{ item.url }}{% else %}{{ item.url | relative_url }}{% endif %}"
12-
class="site-nav-link{% if item.external %} site-nav-link--external{% endif %}{% if page.url == item.url %} is-active{% endif %}"
13-
{% if item.external %}target="_blank" rel="noopener noreferrer"{% endif %}
14-
>
15-
{{ item.title }}
16-
</a>
17-
</li>
18-
{% endfor %}
19-
</ul>
20-
21-
<div class="site-nav-group">
22-
<span class="site-nav-label">Boards</span>
7+
<div class="site-nav-row">
238
<ul class="site-nav-list">
24-
{% for item in site.navigation_boards %}
9+
{% for item in site.navigation %}
2510
<li class="site-nav-item">
2611
<a
27-
href="{{ item.url | relative_url }}"
28-
class="site-nav-link{% if page.url == item.url %} is-active{% endif %}"
12+
href="{% if item.external %}{{ item.url }}{% else %}{{ item.url | relative_url }}{% endif %}"
13+
class="site-nav-link{% if item.external %} site-nav-link--external{% endif %}{% if page.url == item.url %} is-active{% endif %}"
14+
{% if item.external %}target="_blank" rel="noopener noreferrer"{% endif %}
2915
>
3016
{{ item.title }}
3117
</a>
3218
</li>
3319
{% endfor %}
3420
</ul>
35-
</div>
36-
37-
<div class="site-nav-group">
3821
<span class="site-nav-label">Apps</span>
3922
<ul class="site-nav-list">
4023
{% for item in site.navigation_apps %}
@@ -50,7 +33,7 @@ <h2 class="project-tagline">{{ site.description | default: "RISC-V learnings and
5033
</ul>
5134
</div>
5235

53-
<div class="site-nav-group">
36+
<div class="site-nav-row">
5437
<span class="site-nav-label">Scientific libs</span>
5538
<ul class="site-nav-list">
5639
{% for item in site.navigation_scientific_libs %}
@@ -65,6 +48,22 @@ <h2 class="project-tagline">{{ site.description | default: "RISC-V learnings and
6548
{% endfor %}
6649
</ul>
6750
</div>
51+
52+
<div class="site-nav-row">
53+
<span class="site-nav-label">Boards</span>
54+
<ul class="site-nav-list">
55+
{% for item in site.navigation_boards %}
56+
<li class="site-nav-item">
57+
<a
58+
href="{{ item.url | relative_url }}"
59+
class="site-nav-link{% if page.url == item.url %} is-active{% endif %}"
60+
>
61+
{{ item.title }}
62+
</a>
63+
</li>
64+
{% endfor %}
65+
</ul>
66+
</div>
6867
</div>
6968
</nav>
7069
</header>

assets/css/style.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99

1010
.site-nav-groups {
1111
display: flex;
12-
flex-wrap: wrap;
13-
justify-content: center;
12+
flex-direction: column;
1413
align-items: center;
15-
gap: 1rem 1.5rem;
14+
gap: 0.65rem;
1615
}
1716

18-
.site-nav-group {
17+
.site-nav-row {
1918
display: flex;
2019
flex-wrap: wrap;
2120
align-items: center;

website.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Nav config: `_config.yml` (`navigation`, `navigation_boards`, `navigation_apps`,
4444

4545
| Date | Decision |
4646
|------|----------|
47+
| 2026-07-14 | Nav layout: 3 stacked rows — Apps (top), Scientific libs (middle), Boards (bottom) |
4748
| 2026-07-14 | Add Quantum ESPRESSO app page from `opensolvers/benchmarks/qe` |
4849
| 2026-07-14 | IME (X60 `smt.vmadot`) section on RV2 and BPI-F3 board pages |
4950
| 2026-07-14 | Add dedicated DGEMM and NumPy scientific-lib pages from benchmarks repo |

0 commit comments

Comments
 (0)