From dd9bad935e2cd0ca848d18a35fa8591a2307b73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Thu, 19 Feb 2026 18:37:46 +0100 Subject: [PATCH] refactor(lightbox): move state to html and use a more robust global click listener --- default.hbs | 34 ++++++++++++++++------------------ partials/lightbox.hbs | 26 ++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 18 deletions(-) create mode 100644 partials/lightbox.hbs diff --git a/default.hbs b/default.hbs index 3c3c743..2e83c0a 100644 --- a/default.hbs +++ b/default.hbs @@ -2,6 +2,9 @@ @@ -27,14 +41,7 @@ -
+
{{> header}}
@@ -44,16 +51,7 @@ {{> footer}} {{> mobile-menu}} - - + {{> lightbox}}
{{ghost_foot}} diff --git a/partials/lightbox.hbs b/partials/lightbox.hbs new file mode 100644 index 0000000..7eb6052 --- /dev/null +++ b/partials/lightbox.hbs @@ -0,0 +1,26 @@ +