「14」hexo-安装&插件

hexo安装及其第三方插件包下载总结,以便后续CI一次到位。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 npm install -g hexo-cli
npm install hexo-renderer-sass --save
npm install hexo-generator-searchdb --save
npm install hexo-generator-sitemap --save
npm install hexo-generator-baidu-sitemap --save
npm install request --save
npm install xml-parser --save
npm install yamljs --save
npm install md5 --save
npm install request --save
npm install xml-parser --save
npm install yamljs --save
npm install cheerio --save
npm install blueimp-md5 --save
npm install hexo-abbrlink --save
npm audit fix

npm uninstall hexo-generator-index --save
npm install hexo-generator-index-pin-top --save
npm audit fix

npm install hexo-neat --save
npm audit fix
npm install --save hexo-admin
npm audit fix
npm install hexo-deployer-git --save
npm audit fix

sudo npm install hexo-toc --save
npm audit fix

//猫咪模型
sudo npm install --save hexo-helper-live2d
npm audit fix
sudo npm install --save live2d-widget-model-z16

//pdf:
npm install --save hexo-pdf
npm audit fix

update: 2021-02-05 19:25:42

hexo next解析插件更换:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
npm un hexo-renderer-marked -S

npm uninstall hexo-renderer-marked --save

再安装下面插件:


npm install --save markdown-it-abbr
npm install --save markdown-it-footnote
npm install --save markdown-it-ins
npm install --save markdown-it-sub
npm install --save markdown-it-sup
npm install --save markdown-it-anchor
npm install --save markdown-it-deflist
npm install --save markdown-it-mark
npm install --save markdown-it-container

npm install --save markdown-it-emoji
npm install --save markdown-it-attrs
npm install --save markdown-it-task-lists
npm install --save markdown-it-68tygbv

npm install markdown-it-mathjax --save
npm audit fix
npm i markdown-it-latex2img --save
npm audit fix
npm install markdown-it-texmath
npm audit fix

最后更新下hexo更目录下的_config.yaml

# Markdown-it config
## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki
markdown:
render:
# Enable HTML tags in source
html: true

# Use '/' to close single tags (<br />). This is only for full CommonMark compatibility.
xhtmlOut: true

# Convert '\n' in paragraphs into <br>
breaks: true

# CSS language prefix for fenced blocks. Can be useful for external highlighters.
langPrefix: 'language-'

# Autoconvert URL-like text to links
linkify: true

# Enable some language-neutral replacement + quotes beautification
typographer: false

# Double + single quotes replacement pairs, when typographer enabled,
# and smartquotes on. Could be either a String or an Array.
#
# For example, you can use '«»„“' for Russian, '„“‚‘' for German,
# and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp).
quotes: '“”‘’'

# Plugins
plugins:
- markdown-it-abbr
- markdown-it-footnote
- markdown-it-ins
- markdown-it-sub
- markdown-it-sup
- markdown-it-anchor
- markdown-it-deflist
- markdown-it-mark
- markdown-it-container

- markdown-it-emoji
- markdown-it-named-headings
- markdown-it-toc
- markdown-it-attrs
- name: markdown-it-task-lists
options:
enabled: false
label: true
labelAfter: false

# Automatic Headline ID's
anchors:
# Minimum level for ID creation. (Ex. h2 to h6)
level: 2

# A suffix that is prepended to the number given if the ID is repeated.
collisionSuffix: 'v'

# If `true`, creates an anchor tag with a permalink besides the heading.
permalink: false

# Class used for the permalink anchor tag.
permalinkClass: header-anchor

# The symbol used to make the permalink
permalinkSymbol: ¶

hexo gulp兼容es5:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
npm install gulp --save
npm audit fix
npm install gulp-minify-css --save
npm audit fix
npm install gulp-uglify --save
npm audit fix
npm install gulp-htmlmin --save
npm audit fix
npm install gulp-htmlclean --save
npm audit fix
npm install gulp-imagemin --save
npm audit fix

npm install babel-core@6.26.3 --save
npm install gulp-babel@7.0.1 --save
npm install babel-preset-es2015@6.24.1 --save
npm audit fix

next文章加密用:

1
npm install --save hexo-blog-encrypt

未完待续…