hexo-theme-shokax 0.5.0-dev-e34ffd2 → 0.5.0-dev-0e1579b

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -2,22 +2,22 @@
2
2
  此分支为 ShokaX 0.5 实验性变更分支,确保0.5开发期间0.4的维护不受影响
3
3
 
4
4
  计划更改:
5
- - 移除 pjax
6
- - 移除 quicklink
7
- - 移除 assetUrl 为基的动态 Vendor 机制
8
- - 移除 ShokaX Inject
9
- - 引入新的 Inject 类技术 (长期)
10
- - 引入新的工作流程
11
- - 引入 CI 自动测试
12
- - 重构 player (暂时移除)
13
- - 优化 menu 配置格式
14
- - 优化和异步化 Smart Bundle 技术
15
- - 优化 CSS 结构和加载
16
- - 修复/重置 fancybox
17
- - 修复模板长期遗留问题
18
- - 修复 images 遗留问题
19
- - 规范化配置文件
20
- - 规范化文档
5
+ - [x] 移除 pjax
6
+ - [x] 移除 quicklink
7
+ - [x] 移除 assetUrl 为基的动态 Vendor 机制
8
+ - [ ] 移除 ShokaX Inject
9
+ - [ ] 引入新的 Inject 类技术 (长期)
10
+ - [ ] 引入新的工作流程
11
+ - [ ] 引入 CI 自动测试
12
+ - [ ] 重构 player (暂时移除)
13
+ - [ ] 优化 menu 配置格式
14
+ - [ ] 优化和异步化 Smart Bundle 技术
15
+ - [ ] 优化 CSS 结构和加载
16
+ - [x] 修复/重置 fancybox
17
+ - [ ] 修复模板长期遗留问题
18
+ - [ ] 修复 images 遗留问题
19
+ - [ ] 规范化配置文件
20
+ - [ ] 规范化文档
21
21
 
22
22
  ## 📚子项目
23
23
  - [ShokaX docs](https://github.com/theme-shoka-x/shokaX-docs) ShokaX 主题文档 (正在编写中,欢迎加入!)
@@ -41,7 +41,6 @@ each dnsLink in dnslinks
41
41
  - var fontConfig = theme.font?.loadFromGoogle
42
42
  if fontConfig
43
43
  != _vendor_font()
44
- != _css('app.css')
45
44
  != preloadjs()
46
45
  != load_async_css()
47
46
 
@@ -50,7 +49,6 @@ link(rel="stylesheet" media="none" onload="this.media='all'" href="https://s4.zs
50
49
  link(rel="stylesheet" media="none" onload="this.media='all'" href="https://s4.zstatic.net/ajax/libs/justifiedGallery/3.8.1/css/justifiedGallery.min.css")
51
50
  link(rel="stylesheet" media="none" onload="this.media='all'" href="https://s4.zstatic.net/ajax/libs/KaTeX/0.16.9/katex.min.css")
52
51
  //link(rel="stylesheet" media="none" onload="this.media='all'" href="https://s4.zstatic.net/ajax/libs/KaTeX/0.16.9/katex.min.css")
53
- != _css('mermaid.css')
54
52
  if theme.experiments.cloudflarePatch
55
53
  != _js('cf-patch.js')
56
54
 
@@ -20,6 +20,7 @@ html(lang=page.language?page.language:config.language, style=theme.grayMode ? 'f
20
20
 
21
21
  != partial('_partials/head/head_com.pug')
22
22
  != shokax_inject('head')
23
+ block head
23
24
  title
24
25
  block title
25
26
  != `${alternate?alternate + " = ":""}${title}${subtitle?" = "+subtitle:""}`
@@ -1,5 +1,8 @@
1
1
  extends _partials/layout.pug
2
2
 
3
+ block head
4
+ != _css('page.css')
5
+
3
6
  block title
4
7
  if is_month()
5
8
  != `${page.year}${__('symbol.year')}/${page.month}${__('symbol.month')}`
@@ -1,5 +1,8 @@
1
1
  extends ./_partials/layout.pug
2
2
 
3
+ block head
4
+ != _css('page.css')
5
+
3
6
  block title
4
7
  != `${__('title.category')}${__('symbol.colon')}${page.category}`
5
8
 
package/layout/index.pug CHANGED
@@ -3,6 +3,9 @@ include _mixin/card.pug
3
3
  include _mixin/postmeta.pug
4
4
  include _mixin/segment.pug
5
5
 
6
+ block head
7
+ != _css('page.css')
8
+
6
9
  block content
7
10
  div(class="index wrap")
8
11
  if page.current === 1
package/layout/page.pug CHANGED
@@ -2,6 +2,9 @@ extends _partials/layout.pug
2
2
  include _mixin/sidebar.pug
3
3
  include _mixin/comment.pug
4
4
 
5
+ block head
6
+ != _css('post.css')
7
+
5
8
  block title
6
9
  if page.type === 'categories'
7
10
  != __('title.all') + __('title.category')
package/layout/post.pug CHANGED
@@ -3,6 +3,10 @@ include _mixin/sidebar.pug
3
3
  include _mixin/comment.pug
4
4
  include _mixin/postmeta.pug
5
5
 
6
+ block head
7
+ != _css('post.css')
8
+ != _css('mermaid.css')
9
+
6
10
  block title
7
11
  - var page_title = page.title
8
12
  if page.categories && page.categories.length
package/layout/tag.pug CHANGED
@@ -1,5 +1,8 @@
1
1
  extends ./_partials/layout.pug
2
2
 
3
+ block head
4
+ != _css('page.css')
5
+
3
6
  block title
4
7
  != `${__('title.tag')}${__('symbol.colon')}${page.tag}`
5
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-shokax",
3
- "version": "0.5.0-dev-e34ffd2",
3
+ "version": "0.5.0-dev-0e1579b",
4
4
  "description": "a hexo theme based on shoka",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/theme-shoka-x/hexo-theme-shokaX",
@@ -17,7 +17,6 @@
17
17
  "@types/js-yaml": "^4.0.9",
18
18
  "@types/katex": "^0.16.7",
19
19
  "@types/node": "^22.8.6",
20
- "@types/quicklink": "^2.3.4",
21
20
  "@typescript-eslint/eslint-plugin": "^8.12.2",
22
21
  "@typescript-eslint/parser": "^8.12.2",
23
22
  "eslint": "^9.13.0",
@@ -20,22 +20,9 @@ if $_iconfont = hexo-config('style.iconfont')
20
20
  else
21
21
  @import "_iconfont";
22
22
 
23
- // Scaffolding
24
- @import "_common/scaffolding";
25
-
26
- // Layout
27
- @import "_common/outline";
28
-
29
- // Components
30
- @import "_common/components";
31
-
32
23
  if $custom = hexo-config('style.custom')
33
24
  @import $custom;
34
25
 
35
- if hexo-config('injects.style')
36
- for $inject_style in hexo-config('injects.style')
37
- @import $inject_style;
38
-
39
26
  if $optimize = hexo-config('experiments.optimizeLongPosts')
40
27
  @import "optimize.styl"
41
28
 
@@ -0,0 +1,3 @@
1
+ @import "scaffolding"
2
+
3
+ @import "_common/components/pages"
@@ -0,0 +1,5 @@
1
+ @import "scaffolding"
2
+
3
+ @import "_common/components/post"
4
+ @import "_common/components/highlight"
5
+ @import "_common/components/tags"
@@ -0,0 +1,5 @@
1
+ @import "app"
2
+
3
+ @import "_common/scaffolding"
4
+ @import "_common/outline"
5
+ @import "_common/components/third-party"