Skip to content

Commit eeae08e

Browse files
ten9876claude
andcommitted
Nav: a single Blog link instead of one per breakpoint
The nav carried two Blog anchors — one in .nav-links for desktop and a .nav-cta-link duplicate for mobile — relying on CSS to hide whichever didn't apply. styles.css is served with max-age=14400 and no version query, so a browser holding the previous stylesheet against the new HTML rendered both at once. Keep one anchor, tagged .nav-blog, and collapse its siblings rather than the whole container under 940px. Blog is a destination rather than an in-page anchor, so it survives the breakpoint where the rest fall away — same reachability, and no arrangement of stale CSS can duplicate it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 6e2d3af commit eeae08e

3 files changed

Lines changed: 7 additions & 13 deletions

File tree

blog.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<nav class="nav-links">
5252
<a href="index.html#features">Features</a>
5353
<a href="index.html#built">How it's built</a>
54-
<a href="blog.html" class="is-active" aria-current="page">Blog</a>
54+
<a href="blog.html" class="nav-blog is-active" aria-current="page">Blog</a>
5555
<a href="index.html#partners">Partners</a>
5656
<a href="index.html#contribute">Contribute</a>
5757
<a href="index.html#sponsor">Sponsor</a>
@@ -77,8 +77,6 @@
7777
</div>
7878
</nav>
7979
<div class="nav-cta">
80-
<!-- Mobile-only: .nav-links is hidden under 940px, so Blog needs its own way in. -->
81-
<a class="nav-cta-link" href="blog.html">Blog</a>
8280
<a class="btn btn-primary btn-sm" href="index.html#download">Download</a>
8381
</div>
8482
</div>
@@ -379,7 +377,7 @@ <h2>Get the build for your machine</h2>
379377
<h4>Project</h4>
380378
<a href="index.html#features">Features</a>
381379
<a href="index.html#download">Download</a>
382-
<a href="blog.html">Blog</a>
380+
<a class="nav-blog" href="blog.html">Blog</a>
383381
<a href="https://github.com/aethersdr/AetherSDR/releases">What's new</a>
384382
<a href="https://github.com/aethersdr/AetherSDR#roadmap">Roadmap</a>
385383
</div>

index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<nav class="nav-links">
4444
<a href="#features">Features</a>
4545
<a href="#built">How it's built</a>
46-
<a href="blog.html">Blog</a>
46+
<a class="nav-blog" href="blog.html">Blog</a>
4747
<a href="#partners">Partners</a>
4848
<a href="#contribute">Contribute</a>
4949
<a href="#sponsor">Sponsor</a>
@@ -69,8 +69,6 @@
6969
</div>
7070
</nav>
7171
<div class="nav-cta">
72-
<!-- Mobile-only: .nav-links is hidden under 940px, so Blog needs its own way in. -->
73-
<a class="nav-cta-link" href="blog.html">Blog</a>
7472
<a class="btn btn-primary btn-sm" href="#download">Download</a>
7573
</div>
7674
</div>
@@ -539,7 +537,7 @@ <h2 style="margin-top:16px;">Fuel the next release</h2>
539537
<h4>Project</h4>
540538
<a href="#features">Features</a>
541539
<a href="#download">Download</a>
542-
<a href="blog.html">Blog</a>
540+
<a class="nav-blog" href="blog.html">Blog</a>
543541
<a href="https://github.com/aethersdr/AetherSDR/releases">What's new</a>
544542
<a href="https://github.com/aethersdr/AetherSDR#roadmap">Roadmap</a>
545543
</div>

styles.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,6 @@ footer.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 46px
547547

548548
/* ---------- Blog ---------- */
549549
.nav-links a.is-active { color: var(--cyan); }
550-
/* Blog needs a way in once .nav-links collapses under 940px. */
551-
.nav-cta-link { display: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 520; }
552-
.nav-cta-link:hover { color: var(--ink); }
553550

554551
.blog-index { padding-top: 76px; }
555552
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@@ -648,7 +645,6 @@ footer.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 46px
648645
/* ---------- Responsive ---------- */
649646
@media (max-width: 940px) {
650647
.blog-grid { grid-template-columns: repeat(2, 1fr); }
651-
.nav-cta-link { display: inline-flex; }
652648
.blog-index { padding-top: 46px; }
653649
.blog-post { padding-top: 36px; }
654650
.feature-grid, .dl-grid { grid-template-columns: repeat(2, 1fr); }
@@ -660,7 +656,9 @@ footer.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 46px
660656
.spot.rev .spot-text { order: 0; }
661657
.hw-cols { grid-template-columns: 1fr; }
662658
.foot-grid { grid-template-columns: 1fr 1fr; }
663-
.nav-links { display: none; }
659+
/* No room for the full link set, but Blog is a destination rather than an
660+
in-page anchor, so it stays while the rest collapse away. */
661+
.nav-links > :not(.nav-blog) { display: none; }
664662
}
665663
@media (max-width: 560px) {
666664
.feature-grid, .dl-grid, .partners-grid, .blog-grid { grid-template-columns: 1fr; }

0 commit comments

Comments
 (0)