host: persistent Home link in the top nav
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 43s
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:
@@ -483,6 +483,10 @@
|
|||||||
;; itself). The wrapper boosts every link/form inside, targeting
|
;; itself). The wrapper boosts every link/form inside, targeting
|
||||||
;; #content; #content is the swap target.
|
;; #content; #content is the swap target.
|
||||||
(div :sx-boost "#content"
|
(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)))))))))))
|
(div :id "content" (unquote body)))))))))))
|
||||||
|
|
||||||
;; Wrap a host/blog--page result in a response with the matching content-type:
|
;; Wrap a host/blog--page result in a response with the matching content-type:
|
||||||
|
|||||||
Reference in New Issue
Block a user