Yes I’m rebuilding my blog from scratch yet again. My previous blog was done in Ghost and I didn’t keep it live. I have now decided to relaunch my blog on github pages.
I first tried out some static site generators like DocPad and Jekyl some time ago, but I ended up creating my blog in Ghost. Since that time I’ve decided to revisit static sites for a number of reasons:
- My Ghost Blog needs to be replaced
- I like the idea of hosting my blog on github pages
- I like having full control of my markup so that I can host Angular samples and applictions directly in my blog
- It’s the latest thing all the cool kids are doing these days.
So far I’m quite happy with my choice. Hexo uses Markdown or Html for editing content and uses EJS and Swig for templating. However you really don’t need to know anything about EJS or Swig to use Hexo.
Installing hexo is dead simple. You just need to make sure you have Node and npm already set up. If you’re not familiar with node, head on over to http://nodejs.org/ to learn about it and to install it. Borrowing from the Hello World documents, you can get started with Hexo as follows:
More info: Getting Started
More info: Writing
More info: Server
More info: Generating
More info: Deployment
Once you’re up and running with Hexo you’ll want to get a simple markdown editor. Right now I’m just typing in Brackets (a very cool editor by the way), but I’ll probably look into some online Markdown editors or perhaps a windows program or maybe just create a simple Angular app with ShowDown. We’ll explore that another time.