mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 19:51:07 +02:00
fix: netlify build failed
This commit is contained in:
parent
380a650721
commit
1040aff64c
2 changed files with 8 additions and 5 deletions
|
@ -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 = (() => {
|
||||
|
|
|
@ -51,10 +51,10 @@ const fontStyle = themeConfig.global.fontStyle === 'serif' ? 'font-serif' : 'fon
|
|||
<slot />
|
||||
</main>
|
||||
</div>
|
||||
<Scrollbar client:load />
|
||||
<ThemeToggle client:idle />
|
||||
<Scrollbar />
|
||||
<ThemeToggle />
|
||||
<LanguageSwitcher />
|
||||
<BackToTop client:idle />
|
||||
<PhotoSwipe client:idle />
|
||||
<BackToTop />
|
||||
<PhotoSwipe />
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue