Skip to content
Bofu Chen edited this page Aug 30, 2016 · 4 revisions

From idea to post: step-by-step

Create your first post

# dt42 tech blog is powered by hexo
# global install or local install (ensure hexo is in PATH)
$ sudo npm install hexo-cli -g  # global install
$ npm install hexo-cli --save # local install
$ npm install hexo-deployer-git --save # for deploying generated website via git

$ git clone https://github.com/DT42/dt42-tech-blog.git
$ cd dt42-tech-blog
$ npm install
$ hexo new foo-bar
$ vim source/_posts/foo-bar.md

Preview blog

$ hexo server
$ sensible-browser http://localhost:4000

Commit your result

$ git add sources/_posts/foo-bar.md
$ git commit -m "Good job, luke."
$ git push

Publish new post

# transform markdown documents to static html files
$ hexo generate

# push blog to dt42.github.io
$ hexo deploy
Clone this wiki locally