Skip to content

Commit

Permalink
添加文件压缩插件
Browse files Browse the repository at this point in the history
  • Loading branch information
wherewhere committed Dec 1, 2024
1 parent df4d4bf commit 68c63fb
Show file tree
Hide file tree
Showing 3 changed files with 1,675 additions and 249 deletions.
40 changes: 26 additions & 14 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ deploy:
babel:
options:
presets:
- - "@babel/preset-env"
- - '@babel/preset-env'
- targets: Edge >= 14

# Feed Atom
Expand All @@ -126,7 +126,7 @@ feed:

# Robots.txt
robotstxt:
useragent: "*"
useragent: '*'
allow:
- /
sitemap: https://wherewhere.github.io/sitemap.xml
Expand All @@ -141,18 +141,18 @@ hexo_indexnow:
# API Generator
restful_xapi:
site: [
"title",
"subtitle",
"description",
"author",
"language",
"timezone",
"url",
"keywords",
"favicon",
"social",
"reward",
"follow_me"
'title',
'subtitle',
'description',
'author',
'language',
'timezone',
'url',
'keywords',
'favicon',
'social',
'reward',
'follow_me'
]
categories:
category_generator:
Expand All @@ -170,3 +170,15 @@ restful_xapi:
license:
name: 'Apache 2.0'
version: '0.0.1'

# HTML NANO
htmlnano-mini:
enable: true
uglifyjs: false
minifyJs: true
cleancss: true
collapseWhitespace: aggressive
removeComments: false
removeEmptyAttributes: false
collapseBooleanAttributes: false
sortAttributes: frequency
Loading

0 comments on commit 68c63fb

Please sign in to comment.