Proactivity

Getting Started with Blogging in MarkDown with Hexo

Source

In Summary Here you go

1
2
3
4
5
6
7
8
9
10
11
npm install hexo-cli -g
hexo init blog
cd blog
npm install
hexo server

That’s it. Jump to http://localhost:4000 to see your blog running. tweak around _config.yml to spice things up


Pre-Requisites for above to work

  • Have Node v4.4+ & npm v3.x+ installed
  • Have git installed on cli

Check documentation for more info.

Looks Okay ?

Don’t like the look of things ?

  • Change it up. Choose from themes

Begin Writing in MarkDown

Now jump to the project and source/_posts/ folder would have all your posts in MD (markdown format). Preview using any MarkDown editor or use Atom Editor’s awesome preview plugins documentation for MD

Deployment

I prefer github pages (that’s the simplest) However, heroku and openshift portal deployments also possible. For more details jump here

  • npm install hexo-deployer-git --save
  • Edit your _config.yml. Add this
1
2
3
4
5
6
7
8
9
10
deploy:
type: git
repo: <repository url="">
branch: [branch]
message: [message]

You’ll need to create a repo having gh-pages branch on github before deploying

That’s all that is needed. Happy blogging :-)