From ad556c3e313e28490bd679fc9aa04d6e20419e9e Mon Sep 17 00:00:00 2001 From: giles Date: Mon, 29 Jun 2026 21:17:43 +0000 Subject: [PATCH] host: persistent Home link in the top nav Add a top nav with a boosted Home link, inside the [sx-boost] wrapper but outside #content, so it SPA-navigates to / and survives every content swap. Co-Authored-By: Claude Opus 4.8 --- lib/host/blog.sx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/host/blog.sx b/lib/host/blog.sx index ed48f5db..b1b7464c 100644 --- a/lib/host/blog.sx +++ b/lib/host/blog.sx @@ -483,6 +483,10 @@ ;; itself). The wrapper boosts every link/form inside, targeting ;; #content; #content is the swap target. (div :sx-boost "#content" + ;; persistent top nav OUTSIDE #content, so it survives every + ;; content swap; the Home link is boosted (SPA nav to /). + (nav :style "padding:0.75em 0;border-bottom:1px solid #ccc;margin-bottom:1em" + (a :href "/" :style "font-weight:bold;text-decoration:none" "Home")) (div :id "content" (unquote body))))))))))) ;; Wrap a host/blog--page result in a response with the matching content-type: