host: persistent Home link in the top nav
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 43s

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 <noreply@anthropic.com>
This commit is contained in:
2026-06-29 21:17:43 +00:00
parent 339235a2b5
commit ad556c3e31

View File

@@ -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: