MrainW's Home

All things come to those who wait!

0%

Transfer Hexo blog to Mac

Prepare

Copy the files to your new MacBook

  • _config.yml
  • theme
  • source
  • .gitignore
  • package.json
  • scaffolds

Install

1
2
3
4
5
6
7
8
9
10
// install hexo
sudo npm install hexo-cli -g

//install packages from package.json
sudo npm install

//install other dependencies
sudo npm install hexo-deployer-git --save
sudo npm install hexo-generator-feed --save
sudo npm install hexo-generator-sitemap --save

local test

1
2
3
4
5
hexo clean
hexo g
hexo s

//available on localhost:4000

Deploy to github

1
2
3
4
5
hexo clean

hexo g

hexo d

Welcome to my other publishing channels