- 打开项目
- 同步 submodule
blog-note 是私有仓库,不过你可以自行更换
git submodule update
cd blog-note
git pull
cd ..- 安装依赖:输入
npm install-
拷贝/移动文件,替换图片URL 通过文件管理器将 /blog-node 下的文件复制到 sources 文件夹,并将 articles 重命名为 _posts
或者使用下面的指令自动移动
npm run movefile
# or node bin/movefile.js- 修改后编译
hexo g- 本地服务器(用于调试)
hexo s