Blogging with Hexo
What
Set up a Node.js powered flat file blog using hexo hosted on github pages.
Why
- You can use your own editor! (hint: vim)
- Flat text documents make mouths happy!
- You can revision control everything through git!
- Cheap as free to get started!
- Learn you some hot node.js!
- Because ghost seems more hipster than Sriracha sauce
How
- Setup a yourgithubusername.github.io page following this guide
- Follow the hexo documentation install using Node Version Manager similar to python's virtualenv
- Configure the
_configure.yml
file
ProTips
- Play with some of the hexo themes
I kind of liked Greyshade Theme
$ cd ~/hexoblog/themes
$ git clone https://github.com/nuklly/hexo-theme-greyshade ./greyshade
$ vim ~/hexoblog/_config.yml # theme: greyshade
Example Workflow
$ cd ~/hexoblog
$ hexo new page about # do this once to generate your about page
$ hexo new post "Great New Post" # it defaults to post so can omit that word
# <edit the .md file in vim>
$ hexo generate
$ hexo deploy