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
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 |
|
then git plugin for hexo
1 | npm install hexo-deployer-git --save |
now finally
1 | hexo deploy |