hexo-theme-shokax 0.5.0-dev-e34ffd2 → 0.5.0-dev-f787465
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +16 -16
- package/_config.yml +0 -12
- package/layout/_partials/head/head.pug +0 -14
- package/layout/_partials/layout.pug +1 -0
- package/layout/archive.pug +3 -0
- package/layout/category.pug +3 -0
- package/layout/index.pug +3 -0
- package/layout/page.pug +7 -0
- package/layout/post.pug +8 -0
- package/layout/tag.pug +3 -0
- package/package.json +1 -2
- package/source/css/app.styl +0 -13
- package/source/css/page.styl +3 -0
- package/source/css/post.styl +5 -0
- package/source/css/scaffolding.styl +5 -0
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 主题文档 (正在编写中,欢迎加入!)
|
package/_config.yml
CHANGED
@@ -346,18 +346,6 @@ search:
|
|
346
346
|
# Dependencies: https://github.com/amehime/hexo-renderer-multi-markdown-it
|
347
347
|
pangu: false
|
348
348
|
|
349
|
-
# Quicklink Support
|
350
|
-
# For more information: https://github.com/GoogleChromeLabs/quicklink
|
351
|
-
quicklink:
|
352
|
-
# Custom a time in milliseconds by which the browser must execute prefetching.
|
353
|
-
timeout: 3000
|
354
|
-
# Default (true) will attempt to use the fetch() API if supported (rather than link[rel=prefetch]).
|
355
|
-
priority: true
|
356
|
-
|
357
|
-
# For more flexibility you can add some patterns (RegExp, Function, or Array) to ignores.
|
358
|
-
# See: https://github.com/GoogleChromeLabs/quicklink#custom-ignore-patterns
|
359
|
-
ignores:
|
360
|
-
|
361
349
|
#! ---------------------------------------------------------------
|
362
350
|
#! DO NOT EDIT THE FOLLOWING `vendors` SETTINGS
|
363
351
|
#! UNLESS YOU KNOW WHAT YOU ARE DOING
|
@@ -41,24 +41,10 @@ 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
|
|
48
|
-
// 临时处理
|
49
|
-
link(rel="stylesheet" media="none" onload="this.media='all'" href="https://s4.zstatic.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css")
|
50
|
-
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
|
-
link(rel="stylesheet" media="none" onload="this.media='all'" href="https://s4.zstatic.net/ajax/libs/KaTeX/0.16.9/katex.min.css")
|
52
|
-
//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
47
|
if theme.experiments.cloudflarePatch
|
55
48
|
!= _js('cf-patch.js')
|
56
49
|
|
57
50
|
include pwa.pug
|
58
|
-
|
59
|
-
- var qw = theme?.qweather?.enable
|
60
|
-
if qw
|
61
|
-
style.
|
62
|
-
img[data-v-7d48daab] {
|
63
|
-
max-width: 2em !important;
|
64
|
-
}
|
@@ -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:""}`
|
package/layout/archive.pug
CHANGED
package/layout/category.pug
CHANGED
package/layout/index.pug
CHANGED
package/layout/page.pug
CHANGED
@@ -2,6 +2,13 @@ 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
|
+
// 临时处理
|
8
|
+
link(rel="stylesheet" media="none" onload="this.media='all'" href="https://s4.zstatic.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css")
|
9
|
+
link(rel="stylesheet" media="none" onload="this.media='all'" href="https://s4.zstatic.net/ajax/libs/justifiedGallery/3.8.1/css/justifiedGallery.min.css")
|
10
|
+
link(rel="stylesheet" media="none" onload="this.media='all'" href="https://s4.zstatic.net/ajax/libs/KaTeX/0.16.9/katex.min.css")
|
11
|
+
|
5
12
|
block title
|
6
13
|
if page.type === 'categories'
|
7
14
|
!= __('title.all') + __('title.category')
|
package/layout/post.pug
CHANGED
@@ -3,6 +3,14 @@ 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
|
+
// 临时处理
|
10
|
+
link(rel="stylesheet" media="none" onload="this.media='all'" href="https://s4.zstatic.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css")
|
11
|
+
link(rel="stylesheet" media="none" onload="this.media='all'" href="https://s4.zstatic.net/ajax/libs/justifiedGallery/3.8.1/css/justifiedGallery.min.css")
|
12
|
+
link(rel="stylesheet" media="none" onload="this.media='all'" href="https://s4.zstatic.net/ajax/libs/KaTeX/0.16.9/katex.min.css")
|
13
|
+
|
6
14
|
block title
|
7
15
|
- var page_title = page.title
|
8
16
|
if page.categories && page.categories.length
|
package/layout/tag.pug
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "hexo-theme-shokax",
|
3
|
-
"version": "0.5.0-dev-
|
3
|
+
"version": "0.5.0-dev-f787465",
|
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",
|
package/source/css/app.styl
CHANGED
@@ -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
|
|