44 lines
1.1 KiB
HTML
44 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html lang="{{ lang }}">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
<meta name="generator" content="VuePress {{ version }}" />
|
|
<style>
|
|
:root {
|
|
--c-bg: #fff;
|
|
}
|
|
|
|
html.dark {
|
|
--c-bg: #22272e;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
background-color: var(--c-bg);
|
|
}
|
|
</style>
|
|
<script>
|
|
const userMode = localStorage.getItem('vuepress-color-scheme')
|
|
const systemDarkMode =
|
|
window.matchMedia &&
|
|
window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
|
|
if (userMode === 'light') {
|
|
document.documentElement.dataset.theme = 'light'
|
|
} else if (userMode === 'dark' || systemDarkMode) {
|
|
document.documentElement.classList.toggle('dark', true)
|
|
document.documentElement.dataset.theme = 'dark'
|
|
}
|
|
</script>
|
|
<!--vuepress-ssr-head-->
|
|
<!--vuepress-ssr-styles-->
|
|
<!--vuepress-ssr-preload-->
|
|
<!--vuepress-ssr-prefetch-->
|
|
</head>
|
|
<body>
|
|
<div id="app"><!--vuepress-ssr-content--></div>
|
|
<!--vuepress-ssr-scripts-->
|
|
</body>
|
|
</html>
|