hexo使用方法
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
快速开始
Create a new post
1 |
|
More info: Writing
运行 server
1 |
|
More info: Server
生成静态文件
1 |
|
More info: Generating
部署到远端
1 |
|
More info: Deployment
Hexo的升级
全局升级hexo-cli,先hexo version查看当前版本,然后npm install -g hexo-cli,再次hexo version查看是否升级成功。如果hexo不能直接识别运行,改为npx hexo。
- 使用npm-check,检查系统中的插件是否有升级的。
- 使用npm-upgrade,升级系统中的相关插件。
- npm update -g,检查升级npm本身。经过以上这些命令就可以了。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15npm install -g hexo-cli
hexo version
npm install -g npm-check
npm-check
npm install -g npm-upgrade
npm-upgrade
npm update -g
npm install -g npm
hexo clean #清理hexo数据并重新生成页面并部署
hexo g -s
hexo d
文章内常用标签
1 |
|
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!