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} />} {baidu && <meta name="baidu-site-verification" content={baidu} />}
<!-- Theme Toggle --> <!-- 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 // Initialize theme
function initTheme() { function initTheme() {
const theme = (() => { const theme = (() => {

View file

@ -51,10 +51,10 @@ const fontStyle = themeConfig.global.fontStyle === 'serif' ? 'font-serif' : 'fon
<slot /> <slot />
</main> </main>
</div> </div>
<Scrollbar client:load /> <Scrollbar />
<ThemeToggle client:idle /> <ThemeToggle />
<LanguageSwitcher /> <LanguageSwitcher />
<BackToTop client:idle /> <BackToTop />
<PhotoSwipe client:idle /> <PhotoSwipe />
</body> </body>
</html> </html>