From 5b4a0bc6bc78561dedec0770722dd757e1b03afc Mon Sep 17 00:00:00 2001
From: zzq0826 <770166635@qq.com>
Date: Mon, 21 Sep 2026 16:34:00 +0800
Subject: [PATCH] Merge pull request #1627 from scroll-tech/fix/blog-nav-link
fix(landing): the blog link leaves the nav, the footer keeps it
---
scripts/build-landing.mjs | 10 +++-------
src/app/_components/LandingNav.tsx | 8 ++------
2 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/scripts/build-landing.mjs b/scripts/build-landing.mjs
index b1503a43b..cc7f031b2 100644
--- a/scripts/build-landing.mjs
+++ b/scripts/build-landing.mjs
@@ -47,13 +47,9 @@ once(
once("white paper link", 'href="/scroll-whitepaper.pdf"', 'href="/files/whitepaper.pdf"')
// the blog is a page of its own again (Zhengqi, 2026-09-21): it went off the site with the
// rest of the old pages in the redesign, and the link people were sent to it with has been
-// dead since. It sits in the nav after the product sections and opens the footer's
-// Resources column, here and in LandingFooter.tsx (the other pages' footer) alike.
-once(
- "blog nav link",
- '
AI hardware',
- 'AI hardware\n Blog',
-)
+// dead since. It opens the footer's Resources column, here and in LandingFooter.tsx (the
+// other pages' footer) alike. Not in the nav — that bar is the product's own sections, and
+// the footer link is reach enough (Zhengqi, 2026-09-21).
once(
"blog footer link",
'Documentation',
diff --git a/src/app/_components/LandingNav.tsx b/src/app/_components/LandingNav.tsx
index 23300c421..96159daea 100644
--- a/src/app/_components/LandingNav.tsx
+++ b/src/app/_components/LandingNav.tsx
@@ -14,9 +14,6 @@ const NAV_LINKS = [
{ label: "Compass", href: "/#compass" },
{ label: "ZK API keys", href: "/#api" },
{ label: "AI hardware", href: "/#hardware" },
- // the blog went off the site with the rest of the old pages in the redesign; it is a
- // page of its own, not a section of the front page (Zhengqi 2026-09-21)
- { label: "Blog", href: "/blog" },
]
/** true once the page has scrolled past `threshold`; read on a frame, not on every event */
@@ -58,11 +55,10 @@ const LandingNav = ({ collapsible = false }: LandingNavProps) => {
const [open, setOpen] = useState(false)
const scrolled = useScrolled(24, collapsible)
- // on the landing page itself, scroll smoothly instead of re-navigating (Home would jump
- // otherwise). Links to another page — the blog — are left alone.
+ // on the landing page itself, scroll smoothly instead of re-navigating (Home would jump otherwise)
const handleNavClick = (e: MouseEvent, href: string) => {
setOpen(false)
- if (pathname !== "/" || (href !== "/" && !href.startsWith("/#"))) return
+ if (pathname !== "/") return
e.preventDefault()
const id = href.split("#")[1]
if (id) {