perf: optimize blog assets for low bandwidth
This commit is contained in:
@@ -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 |
@@ -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,7 +1,6 @@
|
||||
---
|
||||
title: 账号密码管理
|
||||
index: false
|
||||
search: false
|
||||
navbar: false
|
||||
sidebar: false
|
||||
breadcrumb: false
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
---
|
||||
icon: circle-info
|
||||
cover: /assets/images/cover3.jpg
|
||||
cover: /assets/images/cover3.webp
|
||||
date: 2025-05-06
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user