博客迁移
步骤
创建 Hexo 文件夹
克隆博客仓库
替换配置文件
由于 hexo init 必须执行于 空文件夹,因此无法在博客仓库中初始化 Hexo 。
创建 Hexo 文件夹
hexo init [destination]

删除配置文件
删除 Hexo 文件夹下的 source 文件夹和 .gitignore、_config.landscape.yml、_config.yml 三个文件。

设置仓库
cd blog
git remote add origin 仓库地址
git pull origin master:master
安装主题
https://github.com/fluid-dev/hexo-theme-fluid/releases
将主题文件拷贝至 themes 文件夹中并改名为 fluid
或使用命令
npm install --save hexo-theme-fluid导入静态资源
将
woshixiaoguo.github.io\img中的图片拷贝至博客路径/source/img修改
博客路径/themes/fluid/languages目录下的zh-CN.yml文件
安装部署插件
npm install hexo-deployer-git --save
博客迁移
http://guoguo.host/blog/p/f2707009.html