hexo-theme-particlex 2.0.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +6 -7
- package/_config.yml +2 -2
- package/layout/layout.ejs +2 -2
- package/layout/post.ejs +1 -1
- package/package.json +1 -1
- package/source/js/functions.js +1 -1
package/README.md
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
[Hexo-Theme-ParticleX](https://github.com/argvchs/hexo-theme-particlex) 主题,诞生原因是因为原来的 [Particle](https://github.com/korilin/hexo-theme-particle) 主题不维护了,但是我觉得还是很好的
|
4
4
|
|
5
|
-
原来用的是
|
5
|
+
原来用的是 Vue 2 + Ant Design Vue 1,现更新到 Vue 3,去除 Ant Design Vue 采用自定义样式,图标更改为 Font Awesome 6,将不能用的 JSDelivr 改为 Staticfile CDN
|
6
6
|
|
7
7
|
原项目 `README.md` 里说:
|
8
8
|
|
9
|
-
> 目前有
|
9
|
+
> 目前有 Full、Night 和 Maiden **两个**主题样式
|
10
10
|
|
11
|
-
|
11
|
+
虽然更改后只有一种了,如果你想改颜色就在 `particlex.css` 里 `Ctrl+F` 替换吧
|
12
12
|
|
13
13
|
## 演示地址
|
14
14
|
|
@@ -47,10 +47,9 @@ prismjs:
|
|
47
47
|
## 配置
|
48
48
|
|
49
49
|
```yaml
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
home_background: # Background URL
|
50
|
+
avatar: # Avatar image url
|
51
|
+
head_block_enable: true # Home page head info block
|
52
|
+
home_background: # Home page head background image url
|
54
53
|
```
|
55
54
|
|
56
55
|
- 导航栏配置
|
package/_config.yml
CHANGED
@@ -7,10 +7,10 @@ avatar:
|
|
7
7
|
# Home page head info block
|
8
8
|
head_block_enable: true
|
9
9
|
|
10
|
-
# Home page head background
|
10
|
+
# Home page head background image url
|
11
11
|
home_background:
|
12
12
|
|
13
|
-
# ParticleX theme icon is adopts the
|
13
|
+
# ParticleX theme icon is adopts the Font Awesome 6
|
14
14
|
# Link: https://fontawesome.com/search
|
15
15
|
|
16
16
|
# Main menu navigation
|
package/layout/layout.ejs
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
layout = "index";
|
5
5
|
else if (is_post())
|
6
6
|
layout = "post";
|
7
|
-
else if (is_category() || page.
|
7
|
+
else if (is_category() || page.type == "categories")
|
8
8
|
layout = "categories";
|
9
|
-
else if (is_tag() || page.
|
9
|
+
else if (is_tag() || page.type == "tags")
|
10
10
|
layout = "tags";
|
11
11
|
else if (is_archive() || is_year() || is_month())
|
12
12
|
layout = "archives";
|
package/layout/post.ejs
CHANGED
package/package.json
CHANGED
package/source/js/functions.js
CHANGED
@@ -41,7 +41,7 @@ function showimg() {
|
|
41
41
|
window.addEventListener("resize", () => hide());
|
42
42
|
}
|
43
43
|
function rendermath() {
|
44
|
-
if (typeof renderMathInElement
|
44
|
+
if (typeof renderMathInElement !== "undefined")
|
45
45
|
renderMathInElement(document.body, {
|
46
46
|
delimiters: [
|
47
47
|
{ left: "$$", right: "$$", display: true },
|