liusheng / liusheng.github.io

Liusheng's blog
http://liusheng.github.io
5 stars 1 forks source link

Hexo 常见操作笔记(备查) #2

Open liusheng opened 5 years ago

liusheng commented 5 years ago

部署

可参见:zhuanlan.zhihu.com/p/34379150

新建和上传新的博客

写好博客以后执行: hexo clean && hexo g && hexo d 注意,如果有自己的域名,不需要执行hexo clean

hexo 博客中引用本地图片

npm install https://github.com/CodeFalling/hexo-asset-image --save
hexo clean
hexo d -g

ref: http://etrd.org/2017/01/23/hexo%E4%B8%AD%E5%AE%8C%E7%BE%8E%E6%8F%92%E5%85%A5%E6%9C%AC%E5%9C%B0%E5%9B%BE%E7%89%87/