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} />}
|
{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 = (() => {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue