From 755660b273a9af6936e131b26ff7457149ec5c65 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Mon, 7 Apr 2025 08:45:58 +0300 Subject: [PATCH] Move testimonials to a dedicated navbar item --- _includes/navbar.html | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/_includes/navbar.html b/_includes/navbar.html index a23c8b3e..dec82bb6 100644 --- a/_includes/navbar.html +++ b/_includes/navbar.html @@ -6,12 +6,12 @@ initDarkMode() { // Set up listener for system preference changes const darkModeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)'); - + // Initial check based on system preference if no explicit theme is set if (this.theme === null && darkModeMediaQuery.matches) { document.documentElement.classList.add('dark'); } - + // Listen for changes in system preference darkModeMediaQuery.addEventListener('change', (e) => { if (this.theme === null) { @@ -65,8 +65,6 @@ F# Documentation - Testimonials Publications + +