整理来自网络文章

主要是防止电脑更换系统或者迁移使用

安装过程

  1. 安装node.js
  2. 安装hexo –>npm install -g hexo
  3. 初始化hexo –>hexo init
  4. 生成静态页面 –>hexo generate(hexo g)
  5. 启动项目 –>hexo server(hexo g)
  6. 更换主题 访问 https://github.com/tufu9441/maupassant-hexo
  7. 更改config配置文件title: 张伟的博客、theme: maupassant、url: https://zw6234336.github.io/、deploy:
    type: git
    repository: git@github.com:zw6234336/zw6234336.github.io.git
    branch: master
  8. 发布项目到github上 –>hexo d
  9. 发布报错 $ hexo d ERROR Deployer not found: git –>npm install –save hexo-deployer-git