0%

migration

I’m migrating my posts from my old site hosted in heroku.
Hexo is really a cool tool. And I can host everything statically in github. I knew this was doable but never got a chance to do it. Finally started migrating over this weekend (still working on it).
But it is actually pretty simple and I highly recommend using hexo for personal blogs.
Some tips setting it up.

More stuff coming.

Github.

Create a github repo and name it .github.io. Username has to be your github username.
Also you want to setup SSH in github.

NodeJS.

install Nodejs so that you can use npm

Hexo.

install command

1
npm install -g hexo-cli

create project

1
hexo init {project name}

compile your files into HTML:

1
hexo generate

try see it locally:

1
hexo serve

deploy to github

first need to update the _config.yml

1
2
3
4
5
6
7

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: {git repo ssh address}
branch: master

then git plugin for hexo

1
npm install hexo-deployer-git --save

now finally

1
hexo deploy