hexo-theme-particlex 2.0.2 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
package/LICENSE CHANGED
@@ -1,6 +1,7 @@
1
1
  MIT License
2
2
 
3
3
  Copyright (c) 2022 Argvchs
4
+ Copyright (c) 2020 korilin
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  虽然更改后只有一种了,如果你想改颜色就在 `particlex.css` 里 `Ctrl+F` 替换吧
12
12
 
13
- ## 演示地址
13
+ ## 演示
14
14
 
15
15
  - Github Pages <https://argvchs.github.io>
16
16
  - Netlify <https://argvchs.netlify.app>
@@ -42,14 +42,15 @@ prismjs:
42
42
  tab_replace: ""
43
43
  ```
44
44
 
45
- 修改完请清除缓存:`hexo cl`
45
+ 修改完请 `hexo cl` 清除缓存
46
46
 
47
47
  ## 配置
48
48
 
49
49
  ```yaml
50
- avatar: # Avatar image url
51
- head_block_enable: true # Home page head info block
52
- home_background: # Home page head background image url
50
+ avatar: # Avatar image
51
+ headBlockEnable: true # Home page info block
52
+ background: # Home page background image
53
+ highlightStyle: github # Highlight style
53
54
  ```
54
55
 
55
56
  - 导航栏配置
@@ -90,7 +91,7 @@ home_background: # Home page head background image url
90
91
 
91
92
  `description` 支持 Markdown 格式
92
93
 
93
- **如果图标链接或友链为空,请在 `icon_links:` 或 `friend_links:` 后添加一个 `{}`**
94
+ **如果图标链接或友链为空,请在 `iconLinks:` 或 `friendLinks:` 后添加一个 `{}`**
94
95
 
95
96
  ```yaml
96
97
  card:
@@ -98,13 +99,13 @@ home_background: # Home page head background image url
98
99
  description:
99
100
  - Description
100
101
  - "..."
101
- icon_links:
102
+ iconLinks:
102
103
  {}
103
104
  # <name>:
104
105
  # name: <icon-name>
105
106
  # theme: <icon-theme>
106
107
  # link: <link-url>
107
- friend_links:
108
+ friendLinks:
108
109
  {}
109
110
  # <name>: <link-url>
110
111
  ```
@@ -186,7 +187,7 @@ home_background: # Home page head background image url
186
187
  # Site config
187
188
  search:
188
189
  path: /search.json
189
- optimize: false
190
+ optimize: true
190
191
  ```
191
192
 
192
193
  - Gitalk
package/_config.yml CHANGED
@@ -1,17 +1,21 @@
1
1
  # https://github.com/argvchs/hexo-theme-particlex
2
2
  # Developer: argvchs
3
3
 
4
- # Avatar image url
4
+ # Avatar image
5
5
  avatar:
6
6
 
7
- # Home page head info block
8
- head_block_enable: true
7
+ # Home page info block
8
+ headBlockEnable: true
9
9
 
10
- # Home page head background image url
11
- home_background:
10
+ # Home page background image
11
+ background:
12
+
13
+ # Highlight style
14
+ # https://highlightjs.org
15
+ highlightStyle: github
12
16
 
13
17
  # ParticleX theme icon is adopts the Font Awesome 6
14
- # Link: https://fontawesome.com/search
18
+ # https://fontawesome.com/search
15
19
 
16
20
  # Main menu navigation
17
21
  menu:
@@ -46,13 +50,13 @@ card:
46
50
  description:
47
51
  - Description
48
52
  - "..."
49
- icon_links:
53
+ iconLinks:
50
54
  {}
51
55
  # <name>:
52
56
  # name: <icon-name>
53
57
  # theme: <icon-theme>
54
58
  # link: <link-url>
55
- friend_links:
59
+ friendLinks:
56
60
  {}
57
61
  # <name>: <link-url>
58
62
 
package/layout/card.ejs CHANGED
@@ -14,18 +14,18 @@
14
14
  <% }); %>
15
15
  </div>
16
16
  <div class="icon-links">
17
- <% Object.keys(theme.card.icon_links).forEach(key => { %>
17
+ <% Object.keys(theme.card.iconLinks).forEach(key => { %>
18
18
  <span class="icon-link">
19
- <a href="<%- theme.card.icon_links[key].link %>">
20
- <i class="fa-<%- theme.card.icon_links[key].theme %> fa-<%- theme.card.icon_links[key].name %> fa-fw"></i>
19
+ <a href="<%- theme.card.iconLinks[key].link %>">
20
+ <i class="fa-<%- theme.card.iconLinks[key].theme %> fa-<%- theme.card.iconLinks[key].name %> fa-fw"></i>
21
21
  </a>
22
22
  </span>
23
23
  <% }); %>
24
24
  </div>
25
25
  <div class="friend-links">
26
- <% Object.keys(theme.card.friend_links).forEach(key => { %>
26
+ <% Object.keys(theme.card.friendLinks).forEach(key => { %>
27
27
  <div class="friend-link">
28
- <a href="<%- theme.card.friend_links[key] %>">
28
+ <a href="<%- theme.card.friendLinks[key] %>">
29
29
  <%= key %>
30
30
  </a>
31
31
  </div>
package/layout/index.ejs CHANGED
@@ -1,6 +1,6 @@
1
- <div id="home-background" style="background-image: url(<%- theme.home_background %>)"></div>
1
+ <div id="home-background" style="background-image: url(<%- theme.background %>)"></div>
2
2
  <div id="home-head">
3
- <% if (theme.head_block_enable) { %>
3
+ <% if (theme.headBlockEnable) { %>
4
4
  <div id="home-info" class="home-info" @click="homeclick">
5
5
  <span class="loop"></span>
6
6
  <span class="loop"></span>
package/layout/layout.ejs CHANGED
@@ -35,16 +35,18 @@
35
35
  <script src="https://cdn.staticfile.org/instant.page/5.1.1/instantpage.min.js" type="module"></script>
36
36
  <script src="https://cdn.staticfile.org/font-awesome/6.2.1/js/all.min.js"></script>
37
37
  <script src="https://cdn.staticfile.org/vue/3.2.45/vue.global.prod.min.js"></script>
38
+ <script src="https://cdn.staticfile.org/highlight.js/11.7.0/highlight.min.js"></script>
39
+ <link rel="stylesheet" href="https://cdn.staticfile.org/highlight.js/11.7.0/styles/<%- theme.highlightStyle %>.min.css">
38
40
  <% if (theme.polyfill.enable) { %>
39
41
  <script src="https://polyfill.io/v3/polyfill.min.js?features=<% theme.polyfill.features.join(",") %>"></script>
40
42
  <% } %>
41
- <link rel="stylesheet" href="<%- url_for("/css/fonts.min.css") %>">
42
- <link rel="stylesheet" href="<%- url_for("/css/particlex.css") %>">
43
43
  <% if (theme.math.enable) { %>
44
44
  <script src="https://cdn.staticfile.org/KaTeX/0.16.4/katex.min.js"></script>
45
45
  <script src="https://cdn.staticfile.org/KaTeX/0.16.4/contrib/auto-render.min.js"></script>
46
46
  <link rel="stylesheet" href="https://cdn.staticfile.org/KaTeX/0.16.4/katex.min.css">
47
47
  <% } %>
48
+ <link rel="stylesheet" href="<%- url_for("/css/fonts.min.css") %>">
49
+ <link rel="stylesheet" href="<%- url_for("/css/particlex.css") %>">
48
50
  </head>
49
51
  <body>
50
52
  <%- include("loading") %>
package/layout/post.ejs CHANGED
@@ -79,7 +79,6 @@
79
79
  </div>
80
80
  <% } %>
81
81
  <% if (theme.twikoo.enable) { %>
82
- <script src="https://cdn.staticfile.org/twikoo/1.6.8/twikoo.all.min.js"></script>
83
82
  <div id="comment">
84
83
  <div id="twikoo-container"></div>
85
84
  </div>
package/layout/script.ejs CHANGED
@@ -1,4 +1,3 @@
1
- <script src="https://cdn.staticfile.org/highlight.js/11.5.1/highlight.min.js"></script>
2
1
  <script src="<%- url_for("/js/functions.js") %>"></script>
3
2
  <script src="<%- url_for("/js/particlex.js") %>"></script>
4
3
  <% if (is_post()) { %>
@@ -65,6 +64,7 @@
65
64
  </script>
66
65
  <% } %>
67
66
  <% if (theme.twikoo.enable) { %>
67
+ <script src="https://cdn.staticfile.org/twikoo/1.6.8/twikoo.all.min.js"></script>
68
68
  <script>
69
69
  twikoo.init({
70
70
  el: "#twikoo-container",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-particlex",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "A concise Hexo theme, based on Particle.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -682,54 +682,6 @@ footer .footer-wrap {
682
682
  line-height: 2;
683
683
  font-size: 13px;
684
684
  }
685
- .content .hljs .hljs-built_in {
686
- color: #42a4d6;
687
- }
688
- .content .hljs .hljs-keyword {
689
- color: #e24279;
690
- }
691
- .content .hljs .hljs-literal {
692
- color: #ff9800;
693
- }
694
- .content .hljs .hljs-number {
695
- color: #ff9800;
696
- }
697
- .content .hljs .hljs-doctag {
698
- color: #009688;
699
- }
700
- .content .hljs .hljs-string {
701
- color: #009688;
702
- }
703
- .content .hljs .hljs-comment {
704
- color: #9e9e9e;
705
- }
706
- .content .hljs .hljs-quote {
707
- color: #9e9e9e;
708
- }
709
- .content .hljs .hljs-attribute {
710
- color: #f00;
711
- }
712
- .content .hljs .hljs-name {
713
- color: #f00;
714
- }
715
- .content .hljs .hljs-attr {
716
- color: #525252;
717
- }
718
- .content .hljs .hljs-class {
719
- color: #3f51b5;
720
- }
721
- .content .hljs .hljs-title {
722
- color: #3f51b5;
723
- }
724
- .content .hljs .hljs-type {
725
- color: #3f51b5;
726
- }
727
- .content .hljs .hljs-params {
728
- color: #458;
729
- }
730
- .content .hljs .hljs-variable {
731
- color: #458;
732
- }
733
685
  #main {
734
686
  margin-right: calc(100% - 100vw);
735
687
  }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 korilin
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.