Skip to content

Commit 1d83cd5

Browse files
committed
remove all stylus files
1 parent 5573080 commit 1d83cd5

12 files changed

+1385
-2088
lines changed

.prettierrc.cjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
singleQuote: true,
1313
semi: true,
1414
tabWidth: 2,
15-
trailingComma: "all",
16-
endOfLine: "lf"
15+
trailingComma: 'all',
16+
endOfLine: 'lf',
1717
// ... more pug* options
18-
};
18+
};

.supermacy.yml

-2
This file was deleted.

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
基于ben02移植的[Anatole主题](https://github.com/Ben02/hexo-theme-Anatole)进行了前端重构。
1414

15-
现在,Anatolo已经是一个类型安全的小巧现代化 Hexo 主题。Anatolo 前端的 js 文件仅仅只有 29 KB 大小,保证极快的加载速度。
15+
现在,Anatolo已经是一个类型安全的小巧现代化 Hexo 主题。Anatolo 前端的 js 文件仅仅只有不到 40KB 大小,保证极快的加载速度。
1616

1717
Anatolo 还在[Anatole主题](https://github.com/Ben02/hexo-theme-Anatole)基础上增加了动态请求、帖子目录、黑暗模式、搜索框等多种理应有的功能,并对界面进行了进一步美化。
1818

@@ -70,7 +70,6 @@ pnpm i # 必须安装依赖
7070

7171
```
7272
npm install hexo-renderer-pug --save
73-
npm install hexo-renderer-stylus --save
7473
```
7574

7675
### 配置

_config.example.yml

+17-21
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See explaination in
1+
# See explaination in
22
# Blog config
33
keywords: Blog,博客,Hexo
44
author: Yourname
@@ -15,7 +15,7 @@ logo_style: width:220px;
1515
# Site-wide copyright settings
1616
copyright:
1717
# If `show` is set to true, a copyright statement will be added to the bottom of each article. You can set this individually in the header of each post. For more information, please refer to the documentation
18-
# For example:
18+
# For example:
1919
# ---
2020
# title: xxx
2121
# copyright: "All rights reserved"
@@ -27,7 +27,7 @@ copyright:
2727
# ---
2828
show: true
2929
# Default copyright statement
30-
default: "本文采用CC-BY-SA-3.0协议,转载请注明出处"
30+
default: '本文采用CC-BY-SA-3.0协议,转载请注明出处'
3131
# Show article author in the copyright statement
3232
show_author: true
3333

@@ -36,18 +36,17 @@ footbar:
3636
# Copyright statement.You can also use it as a footnote
3737
copyright: 全站CC-BY-SA-3.0
3838
# 对于中国用户,如果你有网站备案:
39-
beian:
40-
gongan:
41-
39+
beian:
40+
gongan:
4241

4342
# Social Links
4443
# The key is the icon name of font-awesome 6, and the value is a link
4544
# except for mail.
4645
social:
4746
github: https://github.com/Lhcfl
4847
49-
zhihu:
50-
qq:
48+
zhihu:
49+
qq:
5150
twitter:
5251
instagram:
5352
rss:
@@ -65,30 +64,27 @@ menu:
6564
# Navbar rightbtn
6665
rightbtn:
6766
back: true
68-
search: true # Thanks to Icarus for the search box code
67+
search: true # Thanks to Icarus for the search box code
6968
avatar: true
7069
darkLightToggle: true # A toggle switch for dark/light theme
7170

72-
7371
# Other settings
74-
useSummary: false # Opening it will use the automatically generated summary instead of the <!-- more --> you can configure to preview the article.
75-
76-
useTagCloud: false # Use tagcloud instead of tag list
77-
tocMaxDepth: 6 # If you set 0, toc will not be generated. The maximum is 6.
72+
useSummary: false # Opening it will use the automatically generated summary instead of the <!-- more --> you can configure to preview the article.
7873

74+
useTagCloud: false # Use tagcloud instead of tag list
75+
tocMaxDepth: 6 # If you set 0, toc will not be generated. The maximum is 6.
7976

80-
8177
# Comment
8278
always_enable_comments: false # Always enable comments
8379

84-
duoshuo:
85-
disqus:
86-
gentie:
80+
duoshuo:
81+
disqus:
82+
gentie:
8783
# Valine comments https://valine.js.org
8884
valine:
8985
enable: false # if you want use valine, please set enable: true
90-
appid: # your leancloud appid
91-
appkey: # your leancloud appkey
86+
appid: # your leancloud appid
87+
appkey: # your leancloud appkey
9288
notify: false # true/false:mail notify !!!Test,Caution. https://github.com/xCss/Valine/wiki/Valine-%E8%AF%84%E8%AE%BA%E7%B3%BB%E7%BB%9F%E4%B8%AD%E7%9A%84%E9%82%AE%E4%BB%B6%E6%8F%90%E9%86%92%E8%AE%BE%E7%BD%AE
9389
verify: false # true/false:verify code
9490
avatar: mm # avatar style https://github.com/xCss/Valine/wiki/avatar-setting-for-valine
@@ -107,6 +103,6 @@ gitalk:
107103
client_secret: 'Your client secret'
108104

109105
# 百度统计设置
110-
# 请访问 https://tongji.baidu.com/
106+
# 请访问 https://tongji.baidu.com/
111107
# 获取统计JS代码放入 Anatolo/source/js/baidu-tongji.js
112108
Baidutongji: false

biome.json

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3-
"formatter": {
4-
"enabled": true,
5-
"formatWithErrors": false,
6-
"indentStyle": "space",
7-
"indentWidth": 2,
8-
"lineEnding": "lf",
9-
"lineWidth": 120,
10-
"attributePosition": "auto",
11-
"ignore": ["**/*.min.js", "**/*.min.css", "source/js_complied"]
12-
},
13-
"organizeImports": { "enabled": true },
14-
"linter": { "enabled": true, "rules": { "recommended": true } },
15-
"javascript": {
16-
"formatter": {
17-
"jsxQuoteStyle": "double",
18-
"quoteProperties": "asNeeded",
19-
"trailingCommas": "all",
20-
"semicolons": "always",
21-
"arrowParentheses": "always",
22-
"bracketSpacing": true,
23-
"bracketSameLine": false,
24-
"quoteStyle": "single",
25-
"attributePosition": "auto"
26-
}
27-
}
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"formatter": {
4+
"enabled": true,
5+
"formatWithErrors": false,
6+
"indentStyle": "space",
7+
"indentWidth": 2,
8+
"lineEnding": "lf",
9+
"lineWidth": 120,
10+
"attributePosition": "auto",
11+
"ignore": ["**/*.min.js", "**/*.min.css", "source/js_complied"]
12+
},
13+
"organizeImports": { "enabled": true },
14+
"linter": { "enabled": true, "rules": { "recommended": true } },
15+
"javascript": {
16+
"formatter": {
17+
"jsxQuoteStyle": "double",
18+
"quoteProperties": "asNeeded",
19+
"trailingCommas": "all",
20+
"semicolons": "always",
21+
"arrowParentheses": "always",
22+
"bracketSpacing": true,
23+
"bracketSameLine": false,
24+
"quoteStyle": "single",
25+
"attributePosition": "auto"
26+
}
27+
}
2828
}

eslint.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default [
88
globals: {
99
...globals.browser,
1010
...globals.commonjs,
11-
hexo: "readonly",
11+
hexo: 'readonly',
1212
},
1313
},
1414
},

layout/partial/head.pug

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ meta(name="renderer", content="webkit")
2323
link(rel="shortcut icon", type="image/x-icon", href=url_for(theme.favicon))
2424

2525
link(rel="stylesheet", href=url_for("js_complied/bundle.css"))
26-
link(rel="stylesheet", href=url_for("css/style.css"))
2726
link(rel="stylesheet", href=url_for("css/font-awesome.min.css"))
2827
link(rel="alternate", type="application/atom+xml", title="ATOM 1.0", href="/atom.xml")
2928

package.json

+28-31
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,30 @@
11
{
2-
"name": "hexo-theme-Anatolo",
3-
"version": "0.0.0",
4-
"private": true,
5-
"scripts": {
6-
"format:stylus": "stylus-supremacy format ./source/css/**/*.styl -r --options .supermacy.yml",
7-
"format:pretty": "prettier --write ./{layout,src}/**/*.{pug,scss}",
8-
"format:biome": "biome format --write includes languages scripts source src",
9-
"lint": "eslint . --fix",
10-
"format": "pnpm format:stylus && pnpm format:biome && pnpm format:pretty",
11-
"watch": "rollup -w -c ./rollup.config.mjs",
12-
"build": "rollup -c ./rollup.config.mjs"
13-
},
14-
"dependencies": {
15-
"@rollup/plugin-node-resolve": "^15.2.3",
16-
"hexo-renderer-pug": "^0.0.5",
17-
"hexo-renderer-stylus": "^0.2.3",
18-
"rollup": "^4.21.2",
19-
"rollup-plugin-sass": "^1.13.2",
20-
"typescript": "^5.5.4"
21-
},
22-
"devDependencies": {
23-
"@biomejs/biome": "1.8.3",
24-
"@prettier/plugin-pug": "^3.0.0",
25-
"@swc/core": "^1.7.23",
26-
"eslint": "^9.4.0",
27-
"fuse.js": "^7.0.0",
28-
"prettier": "^3.3.1",
29-
"stylus-supremacy": "^2.17.5",
30-
"unplugin-swc": "^1.5.1"
31-
},
32-
"packageManager": "[email protected]+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
2+
"name": "hexo-theme-Anatolo",
3+
"version": "2.0.0",
4+
"private": true,
5+
"scripts": {
6+
"format:pretty": "prettier --write ./{layout,src}/**/*.{pug,scss} && prettier --write ./*.{yml,md}",
7+
"format:biome": "biome format --write includes languages scripts source src .",
8+
"lint": "eslint . --fix",
9+
"format": "pnpm format:biome && pnpm format:pretty",
10+
"watch": "rollup -w -c ./rollup.config.mjs",
11+
"build": "rollup -c ./rollup.config.mjs"
12+
},
13+
"dependencies": {
14+
"@rollup/plugin-node-resolve": "^15.2.3",
15+
"hexo-renderer-pug": "^0.0.5",
16+
"rollup": "^4.21.2",
17+
"rollup-plugin-sass": "^1.13.2",
18+
"typescript": "^5.5.4"
19+
},
20+
"devDependencies": {
21+
"@biomejs/biome": "1.8.3",
22+
"@prettier/plugin-pug": "^3.0.0",
23+
"@swc/core": "^1.7.23",
24+
"eslint": "^9.4.0",
25+
"fuse.js": "^7.0.0",
26+
"prettier": "^3.3.1",
27+
"unplugin-swc": "^1.5.1"
28+
},
29+
"packageManager": "[email protected]+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
3330
}

0 commit comments

Comments
 (0)