From 9761ed75c5afd6c1839c7327b8c2ca2107fa5963 Mon Sep 17 00:00:00 2001 From: librarian <57712678+LibraryLibrarian@users.noreply.github.com> Date: Wed, 1 May 2024 13:14:15 +0900 Subject: [PATCH] feat: option to control whether site visitors can change the theme color (#28) * chore: rebase onto main branch * fix: rename the option --------- Co-authored-by: saicaca --- src/components/ConfigCarrier.astro | 2 +- src/components/Navbar.astro | 18 +++++++++++------- src/config.ts | 5 ++++- src/layouts/Layout.astro | 2 +- src/types/config.ts | 5 ++++- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/components/ConfigCarrier.astro b/src/components/ConfigCarrier.astro index d598196..445be0f 100644 --- a/src/components/ConfigCarrier.astro +++ b/src/components/ConfigCarrier.astro @@ -4,5 +4,5 @@ import {siteConfig} from "../config"; --- -
+
diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 1367ff8..fdc1685 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -47,9 +47,11 @@ let links: NavBarLink[] = navBarConfig.links.map((item: NavBarLink | LinkPreset) - + {!siteConfig.themeColor.fixed && ( + + )}