前言
这里简单记录下Hexo发布博客
的常用命令




安装环境
1 2 3 4
| node v13.6.0 npm v6.13.4 hexo v4.2.1 next v8.0.0_rc.3
|
清理缓存
启动本地服务
生成静态文件
部署到远程站点
插件安装
安装卸载的install/uninstall
可以简写为i/un
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| $ cnpm install hexo-deployer-git --save
$ cnpm install hexo-abbrlink --save
$ cnpm install hexo-generator-searchdb --save
$ cnpm install hexo-symbols-count-time --save
$ cnpm install hexo-generator-index-pin-top --save
$ cnpm install gulp gulp-imagemin gulp-minify-css gulp-minify-html gulp-uglify --save
$ cnpm install hexo-renderer-pandoc --save
|
注:因为npm
服务器速度很慢,所以可以选择使用cnpm
1
| $ npm install -g cnpm --registry=https://registry.npm.taobao.org
|
插件卸载
1 2
| $ cnpm uninstall hexo-generator-index --save $ cnpm uninstall hexo-renderer-marked --save
|
参考链接