hugo-book
hugo-book copied to clipboard
delete color-scheme in head-html
This is a suggestion about #387, just have a look.
Hm, perhaps we should set it to light/dark theme background color?
You mean BookTheme
in config.toml ? I set it auto
, and preferred_color_scheme
with giscus. so, there still have problem when I in dark mode in macOS.

Perhaps
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#343a40">
I tried on my local, not fixed with <meta name="color-scheme" content="light dark">
😅
But remove <meta name="color-scheme" content="light dark">
and add snipped I posted.
yes, it works.
But this does not? I would expect that to work
<meta name="color-scheme" content="light dark">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#343a40">
No, its not work. I am confused too.
Maybe it was a problem with giscus, and fixed with https://github.com/giscus/giscus/commit/15857d093d6115db81582cc56e01f2ce6c5ff18c, so this could be closed.