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({
|
export default config({
|
||||||
formatters: {
|
formatters: {
|
||||||
css: true,
|
css: true,
|
||||||
html: true,
|
|
||||||
},
|
},
|
||||||
ignores: ['lib', 'docs/**/*.md'],
|
ignores: ['lib', 'docs/**/*.md'],
|
||||||
globals: {
|
globals: {
|
||||||
|
|||||||
@ -7,14 +7,14 @@
|
|||||||
<meta name="theme" content="VuePress Theme Plume {{ themeVersion }}" />
|
<meta name="theme" content="VuePress Theme Plume {{ themeVersion }}" />
|
||||||
<script>
|
<script>
|
||||||
;(function () {
|
;(function () {
|
||||||
const um = localStorage.getItem('vuepress-theme-appearance')
|
const um = localStorage.getItem('vuepress-theme-appearance');
|
||||||
const sm =
|
const sm =
|
||||||
window.matchMedia &&
|
window.matchMedia &&
|
||||||
window.matchMedia('(prefers-color-scheme: dark)').matches
|
window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||||
if (um === 'dark' || (um !== 'light' && sm)) {
|
if (um === 'dark' || (um !== 'light' && sm)) {
|
||||||
document.documentElement.classList.add('dark')
|
document.documentElement.classList.add('dark');
|
||||||
}
|
}
|
||||||
})()
|
})();
|
||||||
</script>
|
</script>
|
||||||
<!--vuepress-ssr-head-->
|
<!--vuepress-ssr-head-->
|
||||||
<!--vuepress-ssr-styles-->
|
<!--vuepress-ssr-styles-->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user