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 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
- 原来用的是 Vue2 + AntdVue1,现更新到 Vue3,去除 AntdVue 采用自定义样式,图标更改为 FontAwesome 6,将不能用的 JsDelivr 改为 Staticfile CDN
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
- > 目前有 fullnightmaiden **两个**主题样式
9
+ > 目前有 FullNightMaiden **两个**主题样式
10
10
 
11
- ~~虽然更改后只有一种了,如果你想改颜色就在 `particlex.css` 里 `Ctrl+F` 替换吧~~
11
+ 虽然更改后只有一种了,如果你想改颜色就在 `particlex.css` 里 `Ctrl+F` 替换吧
12
12
 
13
13
  ## 演示地址
14
14
 
@@ -47,10 +47,9 @@ prismjs:
47
47
  ## 配置
48
48
 
49
49
  ```yaml
50
- language: # Language
51
- avatar: # Avatar URL
52
- head_block_enable: true
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 style
10
+ # Home page head background image url
11
11
  home_background:
12
12
 
13
- # ParticleX theme icon is adopts the font awesome 6
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.title == "categories")
7
+ else if (is_category() || page.type == "categories")
8
8
  layout = "categories";
9
- else if (is_tag() || page.title == "tags")
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
@@ -38,7 +38,7 @@
38
38
  </span>
39
39
  <% } %>
40
40
  </div>
41
- <% if (typeof page.password != "undefined" && theme.crypto.enable) { %>
41
+ <% if (typeof page.password !== "undefined" && theme.crypto.enable) { %>
42
42
  <%
43
43
  const CryptoJS = crypto();
44
44
  function SHA(str) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-particlex",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "A concise Hexo theme, based on Particle.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -41,7 +41,7 @@ function showimg() {
41
41
  window.addEventListener("resize", () => hide());
42
42
  }
43
43
  function rendermath() {
44
- if (typeof renderMathInElement != "undefined")
44
+ if (typeof renderMathInElement !== "undefined")
45
45
  renderMathInElement(document.body, {
46
46
  delimiters: [
47
47
  { left: "$$", right: "$$", display: true },