Update index.html

Change the theme colour by  media query.
This commit is contained in:
ij369 2022-04-28 03:09:10 +08:00 committed by GitHub
parent 040584c865
commit 686cc79549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,8 @@
<!-- Add to home screen for Android and modern mobile browsers -->
<link rel="manifest" id="manifestPlaceholder" crossorigin="use-credentials">
<meta name="theme-color" content="[{[ if .Color -]}][{[ .Color ]}][{[ else ]}]#2979ff[{[ end ]}]">
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#2979ff">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#20292F">
<!-- Add to home screen for Safari on iOS/iPadOS -->
<meta name="apple-mobile-web-app-capable" content="yes">