mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix(theme): build html fail
This commit is contained in:
parent
33e2fb78c8
commit
8625c68202
@ -3,7 +3,6 @@ import config from '@pengzhanbo/eslint-config-vue'
|
||||
export default config({
|
||||
formatters: {
|
||||
css: true,
|
||||
html: true,
|
||||
},
|
||||
ignores: ['lib', 'docs/**/*.md'],
|
||||
globals: {
|
||||
|
||||
@ -7,14 +7,14 @@
|
||||
<meta name="theme" content="VuePress Theme Plume {{ themeVersion }}" />
|
||||
<script>
|
||||
;(function () {
|
||||
const um = localStorage.getItem('vuepress-theme-appearance')
|
||||
const um = localStorage.getItem('vuepress-theme-appearance');
|
||||
const sm =
|
||||
window.matchMedia &&
|
||||
window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||
window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
if (um === 'dark' || (um !== 'light' && sm)) {
|
||||
document.documentElement.classList.add('dark')
|
||||
document.documentElement.classList.add('dark');
|
||||
}
|
||||
})()
|
||||
})();
|
||||
</script>
|
||||
<!--vuepress-ssr-head-->
|
||||
<!--vuepress-ssr-styles-->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user