hexo-theme-particlex 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -16
- package/layout/loading.ejs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -23,24 +23,49 @@ cd themes
|
|
23
23
|
git clone https://github.com/argvchs/hexo-theme-particlex.git particlex --depth=1
|
24
24
|
```
|
25
25
|
|
26
|
-
|
26
|
+
- 关闭自带 Highlight
|
27
27
|
|
28
|
-
|
28
|
+
在博客根目录下的 `_config.yml`,修改 `highlight` 和 `prismjs` 参数
|
29
29
|
|
30
|
-
```yaml
|
31
|
-
highlight:
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
prismjs:
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
```
|
30
|
+
```yaml
|
31
|
+
highlight:
|
32
|
+
enable: false
|
33
|
+
line_number: true
|
34
|
+
auto_detect: false
|
35
|
+
tab_replace: ""
|
36
|
+
wrap: true
|
37
|
+
hljs: false
|
38
|
+
prismjs:
|
39
|
+
enable: false
|
40
|
+
preprocess: true
|
41
|
+
line_number: true
|
42
|
+
tab_replace: ""
|
43
|
+
```
|
44
|
+
|
45
|
+
如果使用 Pandoc 还需要设置一下
|
46
|
+
|
47
|
+
```yaml
|
48
|
+
pandoc:
|
49
|
+
extra:
|
50
|
+
- "no-highlight":
|
51
|
+
extensions:
|
52
|
+
- "+hard_line_breaks"
|
53
|
+
- "+emoji"
|
54
|
+
- "-implicit_figures"
|
55
|
+
```
|
56
|
+
|
57
|
+
- 禁用年度/月度归档
|
58
|
+
|
59
|
+
Hexo 会自动生成年度/月度归档,可是 ParticleX 主题没有这个功能 ~~我太懒了~~
|
60
|
+
|
61
|
+
```yaml
|
62
|
+
archive_generator:
|
63
|
+
enabled: true
|
64
|
+
per_page: 0
|
65
|
+
yearly: false
|
66
|
+
monthly: false
|
67
|
+
daily: false
|
68
|
+
```
|
44
69
|
|
45
70
|
修改完请 `hexo cl` 清除缓存
|
46
71
|
|
package/layout/loading.ejs
CHANGED