refactor: 修改项目logo

This commit is contained in:
rbetree
2025-11-09 21:50:31 +08:00
parent c27464c452
commit cc35e3e7c9
7 changed files with 13 additions and 6 deletions

View File

@@ -19,9 +19,10 @@
- 定义了网站的整体样式、布局和主题
- 包含响应式设计和动画效果的实现
- **favicon.ico**: 网站图标
- **menav.svg**: 网站图标和项目logo
- 显示在浏览器标签页、书签和收藏夹中
- 作为网站的标识符
- SVG格式包含黑色字母"M"和蓝色向上箭头设计
- **preview_light.png**: 明亮主题预览图
- 用于README文档中展示网站明亮主题效果
@@ -47,7 +48,7 @@
### 图标与图片
- 网站图标 (`favicon.ico`) 自动应用于生成的网站
- 网站图标 (`menav.svg`) 自动应用于生成的网站
- 预览图片用于项目文档和宣传
## 添加新资源

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

6
assets/menav.svg Normal file
View File

@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="22 22 56 56">
<!-- 黑色的字母 M -->
<path d="M 22 78 L 22 22 L 34 22 L 50 48 L 66 22 L 78 22 L 78 78 L 66 78 L 66 45 L 55 62 L 45 62 L 34 45 L 34 78 Z" fill="#1A1B1E"/>
<!-- 蓝色的向上箭头 -->
<path d="M 45 70 L 45 45 L 36 48 L 50 28 L 64 48 L 55 45 L 55 70 Z" fill="#00a9e0"/>
</svg>

After

Width:  |  Height:  |  Size: 353 B

View File

@@ -5,7 +5,7 @@
title: 我的导航
description: 个人网络导航站
author: Your Name
favicon: favicon.ico
favicon: menav.svg
logo_text: 导航站
icons:

View File

@@ -337,7 +337,7 @@ function ensureConfigDefaults(config) {
result.site.description = result.site.description || '个人网络导航站';
result.site.author = result.site.author || 'MeNav User';
result.site.logo_text = result.site.logo_text || '导航站';
result.site.favicon = result.site.favicon || 'favicon.ico';
result.site.favicon = result.site.favicon || 'menav.svg';
result.site.logo = result.site.logo || null;
result.site.footer = result.site.footer || '';
result.site.theme = result.site.theme || {

View File

@@ -7,8 +7,8 @@
<title data-editable="site-title">{{site.title}}</title>
<meta name="description" content="{{site.description}}" data-editable="site-description">
<meta name="author" content="{{site.author}}" data-editable="site-author">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<link rel="icon" href="./{{site.favicon}}" type="image/x-icon">
<link rel="shortcut icon" href="./{{site.favicon}}" type="image/x-icon">
{{{googleFontsLink}}}
<style>
{{{fontVariables}}}