perf: optimize blog assets for low bandwidth

This commit is contained in:
liumangmang
2026-05-11 15:51:32 +08:00
parent 119bfd49c5
commit 77024b5809
7 changed files with 36 additions and 13 deletions
+3
View File
@@ -14,6 +14,9 @@ export default defineUserConfig({
head: [['link', { rel: 'icon', href: '/favicon.png' }]],
shouldPrefetch: false,
shouldPreload: false,
theme,
bundler: viteBundler({
viteOptions: {
Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

+8 -1
View File
@@ -116,7 +116,14 @@ export default hopeTheme(
blog: true,
// 启用本地搜索
search: true,
search: {
isSearchable: (page) =>
!page.path.includes('/work/log/') &&
!page.path.includes('/demo/') &&
!page.path.includes('/accounts/') &&
!page.path.includes('SpringSecurity'),
maxSuggestions: 10,
},
// 组件配置
components: {
-1
View File
@@ -1,7 +1,6 @@
---
title: 账号密码管理
index: false
search: false
navbar: false
sidebar: false
breadcrumb: false
+1 -1
View File
@@ -1,6 +1,6 @@
---
icon: circle-info
cover: /assets/images/cover3.jpg
cover: /assets/images/cover3.webp
date: 2025-05-06
---