From 12422f1a3168725b1ebb68c4a053cfb2480a15f6 Mon Sep 17 00:00:00 2001 From: Adam Osman Date: Fri, 1 May 2026 20:31:36 -0400 Subject: [PATCH 1/3] fix(docs): prevent dark-mode flash before theme script runs Move theme bootstrap before render-blocking font stylesheet; add critical body background rules; normalize stored theme; reapply on DOMContentLoaded and bfcache pageshow. Co-authored-by: Cursor --- src/layouts/BaseLayout.astro | 62 +++++++++++++++++++++++++++--------- 1 file changed, 47 insertions(+), 15 deletions(-) diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index eed0e4bf..6fc109ab 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -22,31 +22,63 @@ const fullTitle = title === 'Spicetify' ? title : `${title} | Spicetify`; - - - - - {fullTitle} - + + + + + + + {fullTitle} + Skip to content From 78404079233a594c439512605a10d2b1e8286a8d Mon Sep 17 00:00:00 2001 From: Adam Osman Date: Fri, 1 May 2026 20:36:14 -0400 Subject: [PATCH 2/3] feat(docs): client-side navigations with Astro ClientRouter Use ClientRouter for in-site link clicks instead of full document reloads. Reapply theme after view transitions swap root attributes; rebind navbar handlers on astro:page-load; delegate search modal to document listeners; reinit tabs and homepage install block on page-load. Co-authored-by: Cursor --- src/components/Navbar.astro | 68 ++++---- src/components/SearchModal.astro | 168 +++++++++++-------- src/components/Tabs.astro | 1 + src/components/homepage/InstallSection.astro | 9 + src/layouts/BaseLayout.astro | 5 + 5 files changed, 155 insertions(+), 96 deletions(-) diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index c1c2bd4e..5550cbc1 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -151,37 +151,49 @@ const isBlogActive = currentPath.startsWith('/blog');