fix: netlify build failed

This commit is contained in:
radishzzz 2025-02-18 15:56:27 +00:00
parent 380a650721
commit 1040aff64c
2 changed files with 8 additions and 5 deletions

View file

@ -75,7 +75,10 @@ const { commentURL = '', imageHostURL = '', customGoogleAnalyticsURL = '', custo
{baidu && <meta name="baidu-site-verification" content={baidu} />}
<!-- Theme Toggle -->
<script is:inline define:vars={{ defaultMode: themeConfig.color.mode, lightMode, darkMode }}>
<script
is:inline
define:vars={{ defaultMode: themeConfig.color.mode, lightMode, darkMode }}
>
// Initialize theme
function initTheme() {
const theme = (() => {