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 <zephyird@gmail.com>
This commit is contained in:
librarian
2024-05-01 13:14:15 +09:00
committed by GitHub
parent 9d82d25feb
commit 9761ed75c5
5 changed files with 21 additions and 11 deletions

View File

@@ -49,7 +49,7 @@ const myFade = {
// defines global css variables
// why doing this in Layout instead of GlobalStyles: https://github.com/withastro/astro/issues/6728#issuecomment-1502203757
const configHue = siteConfig.themeHue;
const configHue = siteConfig.themeColor.hue;
if (!banner || typeof banner !== 'string' || banner.trim() === '') {
banner = siteConfig.banner.src;
}