From 881b357167f57fc19ca07c040c8b1e5f4f84a6d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Fri, 20 Feb 2026 11:17:21 +0100 Subject: [PATCH] fix(htmx): move hx-boost to body to capture mobile menu navigation --- default.hbs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/default.hbs b/default.hbs index 61d73fe..56db51d 100644 --- a/default.hbs +++ b/default.hbs @@ -34,16 +34,19 @@ {{ghost_head}} + class="{{body_class}} font-sans antialiased" + hx-boost="true" + hx-target="#viewport" + hx-select="#viewport" +> {{!-- The Mobile Menu is outside the swap target and stays alive --}} {{> mobile-menu}} {{!-- - We target only this container for HTMX page swaps. - This keeps root Alpine state (like mobileMenuOpen) persistent. + This container is the target for HTMX swaps. --}} -
+
{{> header}}