Skip to content

Commit 5e9557c

Browse files
committed
简化图标
1 parent b17e9ba commit 5e9557c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+62
-119
lines changed

.github/workflows/main.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
npm install
3434
- name: Get and Patch Lib Files
3535
run: |
36-
cp source/img/icon/favicon.ico source/
36+
mv source/favicon/* source/
37+
rm -rf source/favicon
3738
curl https://cdn.jsdelivr.net/gh/PrismJS/prism-themes@master/themes/prism-material-light.min.css --create-dirs -o node_modules/prismjs/themes/prism-materiallight.css
3839
curl https://cdn.jsdelivr.net/gh/PrismJS/prism-themes@master/themes/prism-material-oceanic.min.css --create-dirs -o node_modules/prismjs/themes/prism-materialoceanic.css
3940
sed -i 's,http://,https://,g' node_modules/hexo-theme-fluid/layout/_partials/footer/beian.ejs

_config.fluid.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
# 用于浏览器标签的图标
2020
# Icon for browser tab
21-
favicon: /img/icon/favicon-194x194.png
21+
favicon: favicon.png
2222

2323
# 用于苹果设备的图标
2424
# Icon for Apple touch
25-
apple_touch_icon: /img/icon/favicon-194x194.png
25+
apple_touch_icon: apple-touch-icon.png
2626

2727
# 浏览器标签页中的标题分隔符,效果: 文章名 - 站点名
2828
# Title separator in browser tab, eg: article - site
@@ -323,7 +323,7 @@ iconfont: //at.alicdn.com/t/font_1736178_lbnruvf0jn.css
323323
navbar:
324324
# 导航栏左侧的标题,为空则按 hexo config 中 `title` 显示
325325
# The title on the left side of the navigation bar. If empty, it is based on `title` in hexo config
326-
blog_title: "Potat0 Box"
326+
blog_title:
327327

328328
# 导航栏毛玻璃特效,实验性功能,可能会造成页面滚动掉帧和抖动,部分浏览器不支持会自动不生效
329329
# Navigation bar frosted glass special animation. It is an experimental feature
@@ -1204,7 +1204,7 @@ links:
12041204

12051205
# 当成员头像加载失败时,替换为指定图片
12061206
# When the member avatar fails to load, replace the specified image
1207-
onerror_avatar: /img/icon/favicon-194x194.png
1207+
onerror_avatar: favicon.png
12081208

12091209
# 友链下方自定义区域,支持 HTML,可插入例如申请友链的文字
12101210
# Custom content at the bottom of the links

_config.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
theme: fluid
22
language: zh-CN
33

4-
title: 'Potat0 Box'
5-
subtitle: '世界那么大 我想去看看'
6-
description: 'Just a box for Potat0.'
4+
title: "Potat0 Box"
5+
subtitle: "世界那么大 我想去看看"
6+
description: "A box of Potat0"
77
author: Potat0
8-
SEOTitle: 'Potat0 Box'
8+
SEOTitle: "Potat0 Box"
99
default_layout: post
1010
new_post_name: :year-:month-:day-:title.md
1111
permalink: posts/:year:month:day/:title/
1212
post_asset_folder: true
13-
url: 'https://potat0.cc/'
13+
url: "https://potat0.cc/"
1414

1515
markdown:
1616
render:
@@ -19,7 +19,7 @@ markdown:
1919
breaks: true
2020
linkify: true
2121
typographer: true
22-
quotes: '“”‘’'
22+
quotes: "“”‘’"
2323
plugins:
2424
- markdown-it-abbr
2525
- markdown-it-cjk-breaks
@@ -42,13 +42,13 @@ css_minifier:
4242
enable: true
4343
silent: false
4444
exclude:
45-
- '*.min.css'
45+
- "*.min.css"
4646
js_minifier:
4747
enable: true
4848
mangle: true
4949
silent: false
5050
exclude:
51-
- '*.min.js'
51+
- "*.min.js"
5252
image_minifier:
5353
enable: true
5454
interlaced: true

atom_template.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<generator uri="https://hexo.io/">Hexo</generator>
1818

1919
<webfeeds:cover image="/img/background.webp" />
20-
<webfeeds:icon>/img/icon/maskable.png</webfeeds:icon>
21-
<webfeeds:logo>/img/icon/maskable.png</webfeeds:logo>
22-
<webfeeds:accentColor>2f4154</webfeeds:accentColor>
20+
<webfeeds:icon>favicon.png</webfeeds:icon>
21+
<webfeeds:logo>favicon.png</webfeeds:logo>
22+
<webfeeds:accentColor>2F4154</webfeeds:accentColor>
2323
<webfeeds:related layout="card" target="browser"/>
2424

2525
{% for post in posts.toArray() %}

hexo-offline.config.cjs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
globPatterns: ["**/*.{js,css,webp,png,jpg,gif,svg,eot,ttf,woff,woff2}"],
3-
globIgnores: ["img/avatar.png", "img/default.png", "img/fluid.png"],
3+
globIgnores: ["img/default.png", "img/fluid.png"],
44
globDirectory: "./public",
55
runtimeCaching: [
66
{
@@ -14,6 +14,10 @@ module.exports = {
1414
{
1515
urlPattern: /^https:\/\/utteranc\.es\/.*/,
1616
handler: "CacheFirst"
17+
},
18+
{
19+
urlPattern: /^https:\/\/lib\.baomitu\.com\/.*/,
20+
handler: "CacheFirst"
1721
}
1822
]
1923
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"hexo-generator-sitemap": "^3.0.1",
2222
"hexo-generator-tag": "^2.0.0",
2323
"hexo-renderer-ejs": "^2.0.0",
24-
"hexo-renderer-markdown-it": "^7.1.0",
25-
"hexo-renderer-stylus": "^3.0.0",
24+
"hexo-renderer-markdown-it": "^7.1.1",
25+
"hexo-renderer-stylus": "^3.0.1",
2626
"hexo-server": "^3.0.0",
2727
"hexo-theme-fluid": "^1.9.7",
2828
"markdown-it-abbr": "^2.0.0",

scripts/head_injector.js

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/favicon/apple-touch-icon.png

16.1 KB

source/favicon/favicon.ico

14.7 KB
Binary file not shown.

source/favicon/favicon.png

15.2 KB

source/favicon/maskable_icon.png

72.7 KB
-4.07 KB
Binary file not shown.
-5.34 KB
Binary file not shown.
-7.52 KB
Binary file not shown.
-852 Bytes
Binary file not shown.
-10.9 KB
Binary file not shown.
-1.3 KB
Binary file not shown.
-14 KB
Binary file not shown.
-1.96 KB
Binary file not shown.
-2.67 KB
Binary file not shown.
Binary file not shown.
-2.03 KB
Binary file not shown.
Binary file not shown.
-2.02 KB
Binary file not shown.
Binary file not shown.
-2.53 KB
Binary file not shown.
Binary file not shown.
-2.63 KB
Binary file not shown.
Binary file not shown.
-3.05 KB
Binary file not shown.
Binary file not shown.
-1.07 KB
Binary file not shown.
Binary file not shown.
-1.17 KB
Binary file not shown.
Binary file not shown.
-1.37 KB
Binary file not shown.
Binary file not shown.
-1.39 KB
Binary file not shown.
-3.5 KB
Binary file not shown.

source/img/icon/apple-touch-icon.png

-3.05 KB
Binary file not shown.

source/img/icon/browserconfig.xml

-12
This file was deleted.

source/img/icon/favicon-16x16.png

-473 Bytes
Binary file not shown.

source/img/icon/favicon-194x194.png

-4.03 KB
Binary file not shown.

source/img/icon/favicon-32x32.png

-794 Bytes
Binary file not shown.

source/img/icon/favicon.ico

-14.7 KB
Binary file not shown.

source/img/icon/maskable.png

-7.64 KB
Binary file not shown.

source/img/icon/mstile-144x144.png

-1.26 KB
Binary file not shown.

source/img/icon/mstile-150x150.png

-1.18 KB
Binary file not shown.

source/img/icon/mstile-310x150.png

-1.24 KB
Binary file not shown.

source/img/icon/mstile-310x310.png

-2.05 KB
Binary file not shown.

source/img/icon/mstile-70x70.png

-1002 Bytes
Binary file not shown.

source/manifest.json

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "Potat0 Box",
3+
"short_name": "Potat0 Box",
4+
"description": "A box of Potat0",
5+
"start_url": "https://potat0.cc/",
6+
"icons": [
7+
{
8+
"src": "favicon.png",
9+
"sizes": "512x512",
10+
"type": "image/png"
11+
},
12+
{
13+
"src": "maskable_icon.png",
14+
"sizes": "512x512",
15+
"type": "image/png",
16+
"purpose": "maskable"
17+
}
18+
],
19+
"theme_color": "#2F4154",
20+
"background_color": "#2F4154",
21+
"display": "standalone",
22+
"orientation": "portrait",
23+
"shortcuts": [
24+
{
25+
"name": "Home",
26+
"short_name": "Home",
27+
"description": "Back to homepage",
28+
"url": "https://potat0.cc/",
29+
"icons": [
30+
{
31+
"src": "favicon.png",
32+
"sizes": "512x512"
33+
}
34+
]
35+
}
36+
]
37+
}

source/manifest.webmanifest

-85
This file was deleted.

0 commit comments

Comments
 (0)