fix: dark theme compatibility with dark-reader extension
This commit is contained in:
@@ -9,6 +9,9 @@ https://github.com/alex-shpak/hugo-book
|
||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
|
||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#2e3440">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
{{- if eq .Site.Params.BookTheme "dark" }}
|
||||
<meta name="darkreader-lock">
|
||||
{{- end }}
|
||||
|
||||
{{- with .Page.Params.BookHref -}}
|
||||
<meta http-equiv="Refresh" content="0; url='{{ . }}'" />
|
||||
|
||||
Reference in New Issue
Block a user