Ugly hotfix for iOS notch color

This commit is contained in:
Capprin Bass 2023-02-12 11:56:28 -05:00
parent 55f6cc8873
commit 1dafb77174
2 changed files with 5 additions and 0 deletions

View file

@ -8,6 +8,9 @@
colorScheme = "blowfish" colorScheme = "blowfish"
defaultAppearance = "light" # valid options: light or dark defaultAppearance = "light" # valid options: light or dark
autoSwitchAppearance = true autoSwitchAppearance = true
# expose theme colors for iOS notch coloring (barring better options)
iosLightOverride = "ffffff"
iosDarkOverride = "1e313b"
enableSearch = false enableSearch = false
enableCodeCopy = false enableCodeCopy = false

View file

@ -4,6 +4,8 @@
<meta http-equiv="content-language" content="{{ . }}" /> <meta http-equiv="content-language" content="{{ . }}" />
{{ end }} {{ end }}
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#{{ .Site.Params.iosLightOverride | default "ffffff" }}" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#{{ .Site.Params.iosDarkOverride | default "000000" }}" media="(prefers-color-scheme: dark)" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" />
{{/* Title */}} {{/* Title */}}
{{ if .IsHome -}} {{ if .IsHome -}}