Skip to content

Commit 7b86158

Browse files
committed
修改插件
1 parent e60458c commit 7b86158

File tree

3 files changed

+8
-35
lines changed

3 files changed

+8
-35
lines changed

.github/workflows/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ jobs:
6969
cd public
7070
rm -rf xml
7171
rm img/default.png img/fluid.png
72+
- name: Brotli
73+
uses: charlesworth/[email protected]
74+
with:
75+
target-directory: public
7276
- name: Deploy to Aliyun OSS
7377
uses: fangbinwei/aliyun-oss-website-action@v1
7478
with:

_config.yml

+3-33
Original file line numberDiff line numberDiff line change
@@ -34,47 +34,17 @@ markdown:
3434
- markdown-it-table-of-contents
3535
- markdown-it-task-lists
3636

37-
html_minifier:
38-
enable: true
39-
ignore_error: false
40-
silent: false
41-
css_minifier:
42-
enable: true
43-
silent: false
44-
exclude:
45-
- "*.min.css"
46-
js_minifier:
47-
enable: true
48-
mangle: true
49-
silent: false
50-
exclude:
51-
- "*.min.js"
52-
image_minifier:
37+
nofollow:
5338
enable: true
54-
interlaced: true
55-
multipass: true
56-
optimizationLevel: 2
57-
pngquant: true
58-
progressive: true
59-
silent: false
39+
field: site
6040

6141
sitemap:
6242
path: sitemap.xml
6343
rel: true
6444
tags: true
6545
categories: false
6646

67-
nofollow:
68-
enable: true
69-
field: site
70-
7147
feed:
7248
enable: true
73-
type: atom
74-
autodiscovery: true
75-
content: true
76-
hub: https://pubsubhubbub.appspot.com
77-
icon: /favicon.ico
78-
limit: 20
79-
order_by: -date
49+
icon: /favicon.png
8050
template: ./atom_template.xml

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
"hexo": {
55
"version": "7.1.1"
66
},
7-
"license": "EPL-1.0",
7+
"license": "GPL-3.0-only",
88
"repository": {
99
"type": "git",
1010
"url": "git+https://github.com/Potat0000/Blog.git"
1111
},
1212
"dependencies": {
1313
"hexo": "^7.1.1",
14-
"hexo-all-minifier": "^0.5.7",
1514
"hexo-filter-nofollow": "^2.0.2",
1615
"hexo-generator-archive": "^2.0.0",
1716
"hexo-generator-category": "^2.0.0",

0 commit comments

Comments
 (0)