From 8d802fc5dae27c2eb017032fd42f479db9cb96ab Mon Sep 17 00:00:00 2001
From: wallleap <15579576761@163.com>
Date: Wed, 22 Nov 2023 11:32:04 +0800
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=88=86=E4=BA=AB=E5=8D=A1?=
=?UTF-8?q?=E7=89=87=E3=80=81=E6=B7=BB=E5=8A=A0=E5=88=B0=E6=A1=8C=E9=9D=A2?=
=?UTF-8?q?=E5=9B=BE=E6=A0=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 31 +++++++++++++++++++++-----
{src/assets/images => public}/logo.svg | 0
public/manifest.json | 15 +++++++++++++
src/config.js | 9 ++++----
vite.config.js | 7 +++---
5 files changed, 49 insertions(+), 13 deletions(-)
rename {src/assets/images => public}/logo.svg (100%)
create mode 100644 public/manifest.json
diff --git a/index.html b/index.html
index 91f7a3b..8327c1e 100755
--- a/index.html
+++ b/index.html
@@ -2,13 +2,32 @@
-
-
-
-
-
-
+
+
+
<%- title %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<% for (var css of css) { %>
<% } %>
diff --git a/src/assets/images/logo.svg b/public/logo.svg
similarity index 100%
rename from src/assets/images/logo.svg
rename to public/logo.svg
diff --git a/public/manifest.json b/public/manifest.json
new file mode 100644
index 0000000..70ee6a5
--- /dev/null
+++ b/public/manifest.json
@@ -0,0 +1,15 @@
+{
+ "name": "wallleap",
+ "short_name": "wallleap",
+ "theme_color": "#ffffff",
+ "background_color": "#ffffff",
+ "display": "standalone",
+ "scope": "/",
+ "start_url": "/",
+ "icons": [{
+ "src": "logo.svg",
+ "sizes": "any",
+ "type": "image/svg+xml",
+ "purpose": "any"
+ }]
+}
diff --git a/src/config.js b/src/config.js
index 36027f9..ffe58e3 100644
--- a/src/config.js
+++ b/src/config.js
@@ -5,7 +5,7 @@
* @property {String} subtitle 博客副标题
* @property {String} description 博客描述
* @property {String} keywords 博客关键字
- * @property {String} favicon 博客图标 180x180
+ * @property {String} logo 博客图标 180x180
* @property {String} favicon16 博客图标 16x16
* @property {String} favicon32 博客图标 32x32
* @property {String} createdTime 博客创建时间
@@ -27,15 +27,16 @@
* @property {String} pageSize 文章列表每页显示文章数
* @property {String} defaultCover 文章默认封面图
*/
+
export default {
// 博客基础配置
title: 'wallleap',
subtitle: 'ルー・ワン',
description: 'Luwang\'s blog',
keywords: 'Luwang, blog, wallleap',
- favicon: '/favicon.ico',
- favicon16: '/favicon.ico',
- favicon32: '/favicon.ico',
+ logo: './logo.svg',
+ favicon16: './favicon.ico',
+ favicon32: './favicon.ico',
createdTime: '2019-08-01',
icp: '赣ICP备20000895号-1',
icpLink: '//beian.miit.gov.cn/',
diff --git a/vite.config.js b/vite.config.js
index bb1b796..bcd9c7f 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -41,9 +41,10 @@ export default defineConfig({
title: `${config.title} | ${config.subtitle}`,
description: config.description,
keywords: config.keywords,
- favicon: config.favicon,
- favicon2: config.favicon16,
- favicon3: config.favicon32,
+ logo: config.logo,
+ favicon16: config.favicon16,
+ favicon32: config.favicon32,
+ url: config.url,
css: isProduction ? CDN.css : [],
js: isProduction ? CDN.js : [config.twikoo.src],
},