-
Notifications
You must be signed in to change notification settings - Fork 1
About
Bofu Chen edited this page Aug 30, 2016
·
4 revisions
# 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
$ hexo server
$ sensible-browser http://localhost:4000
$ git add sources/_posts/foo-bar.md
$ git commit -m "Good job, luke."
$ git push
# transform markdown documents to static html files
$ hexo generate
# push blog to dt42.github.io
$ hexo deploy